src/Vectorface/SnappyRouter/Request/HttpRequest.php
private function fetchInputValue($array, $param, $defaultValue, $filters)
    {
        $value = isset($array[$param]) ? $array[$param] : $defaultValue;
        return $this->applyInputFilters($value, is_array($filters) ? $filters : array($filters));
    }
private function fetchInputValue($array, $param, $defaultValue, $filters)
    {
        $value = isset($array[$param]) ? $array[$param] : $defaultValue;
        return $this->applyInputFilters($value, is_array($filters) ? $filters : array($filters));
    }
private function fetchInputValue ( $ array , $ param , $ defaultValue , $ filters ) { $ value = isset ( $ array [ $ param ] ) ? $ array [ $ param ] : $ defaultValue ; return $ this -> applyInputFilters ( $ value , is_array ( $ filters ) ? $ filters : array ( $ filters ) ) ; }
Fetches the input value from the given array, or the default value. Also
applies any requested filters.
@param array $array The array ($_POST, $_GET, $params, etc).
@param string $param The array key to lookup.
@param mixed $defaultValue The default value to use if the key is not
found in the array.
@param mixed $filters The array of input filters to apply (or single filter).
@return mixed Returns the value filtered (or the default value filtered).
Fetches the input value from the given array or the default value . Also applies any requested filters .