Property | Type | Description | |
---|---|---|---|
$methods | array | List of method names where plugins with these methods will be excluded when iterating | |
$plugins | array | List of short names of plugins to exclude when iterating |
Method | Description | |
---|---|---|
__construct ( Iterator $iterator ) : void | Overrides the parent constructor to reset the internal iterator's pointer to the current item, which the parent class errantly does not do. | |
accept ( ) : boolean | Implements FilterIterator::accept(). | |
addMethodFilter ( mixed $methods ) : Phergie_Plugin_Iterator | Adds to a list of method names where plugins defining these methods will be excluded when iterating. | |
addPluginFilter ( mixed $plugins ) : Phergie_Plugin_Iterator | Adds to a list of plugins to exclude when iterating. | |
clearFilters ( ) : Phergie_Plugin_Iterator | Clears any existing plugin and methods filters. |
public __construct ( Iterator $iterator ) : void | ||
$iterator | Iterator | Iterator to filter |
return | void |
public addMethodFilter ( mixed $methods ) : Phergie_Plugin_Iterator | ||
$methods | mixed | String containing the name of a single method or an array containing the name of multiple methods |
return | Phergie_Plugin_Iterator | Provides a fluent interface |
public addPluginFilter ( mixed $plugins ) : Phergie_Plugin_Iterator | ||
$plugins | mixed | String containing the short name of a single plugin to exclude or an array of short names of multiple plugins to exclude |
return | Phergie_Plugin_Iterator | Provides a fluent interface |
public clearFilters ( ) : Phergie_Plugin_Iterator | ||
return | Phergie_Plugin_Iterator | Provides a fluent interface |
protected array $methods | ||
return | array |
protected array $plugins | ||
return | array |