public function input($input = null, $default = null)
    {
        // Get all inputs
        $inputs = array_merge($this->getInputs(), $this->additionalInputs);

        // Exclude reserved inputs
        foreach ($inputs as $key => $value) {
            if (in_array($key, $this->reserved)) {
                unset($inputs[$key]);
            }
        }

        // Return one input
        if ($input) {
            return isset($inputs[$input])? $inputs[$input] : $default;
        }

        // Or the complete array of inputs
        return $inputs;
    }
public function input($input = null, $default = null)
    {
        // Get all inputs
        $inputs = array_merge($this->getInputs(), $this->additionalInputs);

        // Exclude reserved inputs
        foreach ($inputs as $key => $value) {
            if (in_array($key, $this->reserved)) {
                unset($inputs[$key]);
            }
        }

        // Return one input
        if ($input) {
            return isset($inputs[$input])? $inputs[$input] : $default;
        }

        // Or the complete array of inputs
        return $inputs;
    }
public function input ( $ input = null , $ default = null ) { // Get all inputs $ inputs = array_merge ( $ this -> getInputs ( ) , $ this -> additionalInputs ) ; // Exclude reserved inputs foreach ( $ inputs as $ key => $ value ) { if ( in_array ( $ key , $ this -> reserved ) ) { unset ( $ inputs [ $ key ] ) ; } } // Return one input if ( $ input ) { return isset ( $ inputs [ $ input ] ) ? $ inputs [ $ input ] : $ default ; } // Or the complete array of inputs return $ inputs ; }
Returns a request input

@param string $input Input key
@param string $default Default value to return
@return mixed Array of inputs, or single input if a key is specified
Returns a request input