public function addFilter($filters)
    {
        $filters = (array) AnConfig::unbox($filters);

        foreach ($filters as $filter) {
            if (!($filter instanceof LibBaseTemplateFilterInterface)) {
                $filter = $this->getFilter($filter);
            }
            
            //Enqueue the filter in the command chain
            $this->getCommandChain()->enqueue($filter);
            
            //Store the filter
            $this->_filters[$filter->getIdentifier()->name] = $filter;
        }
        
        return $this;
    }
public function addFilter($filters)
    {
        $filters = (array) AnConfig::unbox($filters);

        foreach ($filters as $filter) {
            if (!($filter instanceof LibBaseTemplateFilterInterface)) {
                $filter = $this->getFilter($filter);
            }
            
            //Enqueue the filter in the command chain
            $this->getCommandChain()->enqueue($filter);
            
            //Store the filter
            $this->_filters[$filter->getIdentifier()->name] = $filter;
        }
        
        return $this;
    }
public function addFilter ( $ filters ) { $ filters = ( array ) AnConfig :: unbox ( $ filters ) ; foreach ( $ filters as $ filter ) { if ( ! ( $ filter instanceof LibBaseTemplateFilterInterface ) ) { $ filter = $ this -> getFilter ( $ filter ) ; } //Enqueue the filter in the command chain $ this -> getCommandChain ( ) -> enqueue ( $ filter ) ; //Store the filter $ this -> _filters [ $ filter -> getIdentifier ( ) -> name ] = $ filter ; } return $ this ; }
Adds one or more filters for template transformation

@param array 	Array of one or more behaviors to add.
@return LibBaseTemplate
Adds one or more filters for template transformation