public function filter( $filter, $params )
    {
        $argList = func_get_args( );

        array_shift( $argList );

        if ( isset( $this->filters[ $filter ] ) )
        {
            foreach( $this->filters[ $filter ] as $callback )
            {
                $argList[ 0 ] = call_user_func_array( $callback[ 'callback' ], $argList );

                if ( $this->debug )
                {
                    echo PHP_EOL . '->FILTER: ' . $filter . ' -> '
                            . $this->_serializeCallback( $callback[ 'callback' ] )
                            . ' + Priority: ' . $callback[ 'priority' ]
                            . PHP_EOL;
                }
            }
        }

        return $argList[ 0 ];
    }
public function filter( $filter, $params )
    {
        $argList = func_get_args( );

        array_shift( $argList );

        if ( isset( $this->filters[ $filter ] ) )
        {
            foreach( $this->filters[ $filter ] as $callback )
            {
                $argList[ 0 ] = call_user_func_array( $callback[ 'callback' ], $argList );

                if ( $this->debug )
                {
                    echo PHP_EOL . '->FILTER: ' . $filter . ' -> '
                            . $this->_serializeCallback( $callback[ 'callback' ] )
                            . ' + Priority: ' . $callback[ 'priority' ]
                            . PHP_EOL;
                }
            }
        }

        return $argList[ 0 ];
    }
public function filter ( $ filter , $ params ) { $ argList = func_get_args ( ) ; array_shift ( $ argList ) ; if ( isset ( $ this -> filters [ $ filter ] ) ) { foreach ( $ this -> filters [ $ filter ] as $ callback ) { $ argList [ 0 ] = call_user_func_array ( $ callback [ 'callback' ] , $ argList ) ; if ( $ this -> debug ) { echo PHP_EOL . '->FILTER: ' . $ filter . ' -> ' . $ this -> _serializeCallback ( $ callback [ 'callback' ] ) . ' + Priority: ' . $ callback [ 'priority' ] . PHP_EOL ; } } } return $ argList [ 0 ] ; }
Executes callbacks for a filter and returns the result.

@param string $filter filter name
@param mixed  $params callback

@return mixed the filtered content
Executes callbacks for a filter and returns the result .