public function handleFilter($filtererName, $method, $params, $locals, $globals)
    {
        $this->allowTemplateCode = false;

        $this->locals  = $locals;
        $this->globals = $globals;
        $this->params  = $params;

        //empty string given for method, use default method
        if(strlen($method) == 0 && $this->getDefaultMethod() != null)
            $methodResolved = $this->getDefaultMethod();
        else if(strlen($method) > 0)
            $methodResolved = ActionUtils::parseMethod($method);
        else
            throw new Exception('No filter method specified and default method does not exist on class ['.get_class($this).']');

        $this->currentMethod = $methodResolved;
        $this->currentFilter = $filtererName.(strlen($method)==0?'':'-'.$method);

        if(!method_exists($this, $methodResolved))
            throw new Exception('Method ['.$methodResolved.'] does not exist on class ['.get_class($this).']');

        $this->preFilter($params);

        $result = $this->$methodResolved($params);

        $this->postFilter($params, $result);

        return $result;
    }
public function handleFilter($filtererName, $method, $params, $locals, $globals)
    {
        $this->allowTemplateCode = false;

        $this->locals  = $locals;
        $this->globals = $globals;
        $this->params  = $params;

        //empty string given for method, use default method
        if(strlen($method) == 0 && $this->getDefaultMethod() != null)
            $methodResolved = $this->getDefaultMethod();
        else if(strlen($method) > 0)
            $methodResolved = ActionUtils::parseMethod($method);
        else
            throw new Exception('No filter method specified and default method does not exist on class ['.get_class($this).']');

        $this->currentMethod = $methodResolved;
        $this->currentFilter = $filtererName.(strlen($method)==0?'':'-'.$method);

        if(!method_exists($this, $methodResolved))
            throw new Exception('Method ['.$methodResolved.'] does not exist on class ['.get_class($this).']');

        $this->preFilter($params);

        $result = $this->$methodResolved($params);

        $this->postFilter($params, $result);

        return $result;
    }
public function handleFilter ( $ filtererName , $ method , $ params , $ locals , $ globals ) { $ this -> allowTemplateCode = false ; $ this -> locals = $ locals ; $ this -> globals = $ globals ; $ this -> params = $ params ; //empty string given for method, use default method if ( strlen ( $ method ) == 0 && $ this -> getDefaultMethod ( ) != null ) $ methodResolved = $ this -> getDefaultMethod ( ) ; else if ( strlen ( $ method ) > 0 ) $ methodResolved = ActionUtils :: parseMethod ( $ method ) ; else throw new Exception ( 'No filter method specified and default method does not exist on class [' . get_class ( $ this ) . ']' ) ; $ this -> currentMethod = $ methodResolved ; $ this -> currentFilter = $ filtererName . ( strlen ( $ method ) == 0 ? '' : '-' . $ method ) ; if ( ! method_exists ( $ this , $ methodResolved ) ) throw new Exception ( 'Method [' . $ methodResolved . '] does not exist on class [' . get_class ( $ this ) . ']' ) ; $ this -> preFilter ( $ params ) ; $ result = $ this -> $ methodResolved ( $ params ) ; $ this -> postFilter ( $ params , $ result ) ; return $ result ; }
This function is used to handle the call to the filterer method.
It fires preHandle, the specified filterer method, then postHandle.

It's this function that makes it required for all filterer classes to be a child
of this class (unless they implement their own version of course.)

@param string $filtererName Name of the filter namespace, typically the class name
@param string $method       The filterer method to run
@param array  $params       An array of parameters for the filterer method
@param array  $locals       An array of locals
@param array  $globals      An array of globals

@return string The result from the filterer method that will be inserted into the template.
This function is used to handle the call to the filterer method . It fires preHandle the specified filterer method then postHandle .