code/http/message/parameters.php
public function all($filter)
    {
        $result = $this->toArray();

        // If the value is null return the default
        if(!empty($result))
        {
            // Handle magic quotes compatibility
            if (get_magic_quotes_gpc()) {
                $result = $this->_stripSlashes( $result );
            }

            // Filter the data
            if(!($filter instanceof FilterInterface)) {
                $filter = $this->getObject('filter.factory')->createChain($filter);
            }

            $result = $filter->sanitize($result);
        }

        return $result;
    }
public function all($filter)
    {
        $result = $this->toArray();

        // If the value is null return the default
        if(!empty($result))
        {
            // Handle magic quotes compatibility
            if (get_magic_quotes_gpc()) {
                $result = $this->_stripSlashes( $result );
            }

            // Filter the data
            if(!($filter instanceof FilterInterface)) {
                $filter = $this->getObject('filter.factory')->createChain($filter);
            }

            $result = $filter->sanitize($result);
        }

        return $result;
    }
public function all ( $ filter ) { $ result = $ this -> toArray ( ) ; // If the value is null return the default if ( ! empty ( $ result ) ) { // Handle magic quotes compatibility if ( get_magic_quotes_gpc ( ) ) { $ result = $ this -> _stripSlashes ( $ result ) ; } // Filter the data if ( ! ( $ filter instanceof FilterInterface ) ) { $ filter = $ this -> getObject ( 'filter.factory' ) -> createChain ( $ filter ) ; } $ result = $ filter -> sanitize ( $ result ) ; } return $ result ; }
Get all parameters and filter them

@param   mixed   $filter Filter(s), can be a Filter object, a filter name, an array of filter names or a filter identifier
@return  mixed   The sanitized data
Get all parameters and filter them