public function set($key, $value = null, $override = false)
    {
        // if key is array,
        // loop the set, while expecting value parameter to be override
        if(is_array($key))
        {
            $override = $value;

            foreach($key as $k => $val)
            {
                if($override === true)
                    $this->setOverride($k, $val);
                else
                    $this->data[$k] = $val;
            }

            return $this;
        }
        else
        {
            if($override === true)
                $this->setOverride($key, $value);
            else
                $this->data[$key] = $value;

            return $this;
        }
    }
public function set($key, $value = null, $override = false)
    {
        // if key is array,
        // loop the set, while expecting value parameter to be override
        if(is_array($key))
        {
            $override = $value;

            foreach($key as $k => $val)
            {
                if($override === true)
                    $this->setOverride($k, $val);
                else
                    $this->data[$k] = $val;
            }

            return $this;
        }
        else
        {
            if($override === true)
                $this->setOverride($key, $value);
            else
                $this->data[$key] = $value;

            return $this;
        }
    }
public function set ( $ key , $ value = null , $ override = false ) { // if key is array, // loop the set, while expecting value parameter to be override if ( is_array ( $ key ) ) { $ override = $ value ; foreach ( $ key as $ k => $ val ) { if ( $ override === true ) $ this -> setOverride ( $ k , $ val ) ; else $ this -> data [ $ k ] = $ val ; } return $ this ; } else { if ( $ override === true ) $ this -> setOverride ( $ key , $ value ) ; else $ this -> data [ $ key ] = $ value ; return $ this ; } }
Set form data
@param string|array key
@param string|boolean value
@param boolean $override
@return $this
Set form data