code/libraries/joomlatools/library/filter/factory.php
public function createChain($identifier, $config = array())
    {
        //Get the filter(s) we need to create
        $filters = (array) $identifier;
        $chain   = $this->getObject('lib:filter.chain');

        foreach($filters as $name)
        {
            $instance = $this->createFilter($name, $config);
            $chain->addFilter($instance);
        }

        return $chain;
    }
public function createChain($identifier, $config = array())
    {
        //Get the filter(s) we need to create
        $filters = (array) $identifier;
        $chain   = $this->getObject('lib:filter.chain');

        foreach($filters as $name)
        {
            $instance = $this->createFilter($name, $config);
            $chain->addFilter($instance);
        }

        return $chain;
    }
public function createChain ( $ identifier , $ config = array ( ) ) { //Get the filter(s) we need to create $ filters = ( array ) $ identifier ; $ chain = $ this -> getObject ( 'lib:filter.chain' ) ; foreach ( $ filters as $ name ) { $ instance = $ this -> createFilter ( $ name , $ config ) ; $ chain -> addFilter ( $ instance ) ; } return $ chain ; }
Factory method for KFilterChain classes.

Method accepts an array of filter names, or filter object identifiers and will create a chained filter
using a FIFO approach.

@param   string|array $identifier Filter identifier(s)
@param   object|array $config     An optional KObjectConfig object with configuration options
@return  KFilterInterface
Factory method for KFilterChain classes .