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

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

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

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

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

@param   ObjectConfigInterface  $config    Configuration options
@param   ObjectManagerInterface $manager A ObjectManagerInterface object
@return FilterInterface
@see FilterTraversable
Create filter and decorate it with FilterIterator if the filter implements FilterTraversable