protected static function getListfilter($properties)
    {
        return function ($item) use ($properties) {
            foreach ($properties as $property => $value)
                if (static::get($item, $property) != $value)
                    return false;
            return true;
        };
    }
protected static function getListfilter($properties)
    {
        return function ($item) use ($properties) {
            foreach ($properties as $property => $value)
                if (static::get($item, $property) != $value)
                    return false;
            return true;
        };
    }
protected static function getListfilter ( $ properties ) { return function ( $ item ) use ( $ properties ) { foreach ( $ properties as $ property => $ value ) if ( static :: get ( $ item , $ property ) != $ value ) return false ; return true ; } ; }
Returns an iterator that matches a list item against properties.

@category Internal Functions

@param array $properties the properties to filter on

@return closure
Returns an iterator that matches a list item against properties .