code/libraries/joomlatools/library/filter/abstract.php
public static function getInstance(KObjectConfigInterface $config, KObjectManagerInterface $manager)
    {
        //Create the singleton
        $class    = $manager->getClass($config->object_identifier);
        $instance = new $class($config);

        if($instance instanceof KFilterTraversable) {
            $instance = $instance->decorate('lib:filter.iterator');
        }

        return $instance;
    }
public static function getInstance(KObjectConfigInterface $config, KObjectManagerInterface $manager)
    {
        //Create the singleton
        $class    = $manager->getClass($config->object_identifier);
        $instance = new $class($config);

        if($instance instanceof KFilterTraversable) {
            $instance = $instance->decorate('lib:filter.iterator');
        }

        return $instance;
    }
public static function getInstance ( KObjectConfigInterface $ config , KObjectManagerInterface $ manager ) { //Create the singleton $ class = $ manager -> getClass ( $ config -> object_identifier ) ; $ instance = new $ class ( $ config ) ; if ( $ instance instanceof KFilterTraversable ) { $ instance = $ instance -> decorate ( 'lib:filter.iterator' ) ; } return $ instance ; }
Create filter and decorate it with KFilterIterator if the filter implements KFilterTraversable

@param   KObjectConfigInterface  $config    Configuration options
@param   KObjectManagerInterface $manager A KObjectManagerInterface object
@return KFilterInterface
@see KFilterTraversable
Create filter and decorate it with KFilterIterator if the filter implements KFilterTraversable