PHP Класс Phergie_Plugin_Iterator, phergie

Автор: Phergie Development Team ([email protected])
Наследование: extends FilterIterator
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

Overrides the parent constructor to reset the internal iterator's pointer to the current item, which the parent class errantly does not do.
public __construct ( Iterator $iterator ) : void
$iterator Iterator Iterator to filter
Результат void

accept() публичный Метод

Implements FilterIterator::accept().
public accept ( ) : boolean
Результат boolean TRUE to include the current item in those by returned during iteration, FALSE otherwise

addMethodFilter() публичный Метод

Adds to a list of method names where plugins defining these methods will be excluded when iterating.
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
Результат Phergie_Plugin_Iterator Provides a fluent interface

addPluginFilter() публичный Метод

Adds to a list of plugins to exclude when iterating.
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
Результат Phergie_Plugin_Iterator Provides a fluent interface

clearFilters() публичный Метод

Clears any existing plugin and methods filters.
public clearFilters ( ) : Phergie_Plugin_Iterator
Результат Phergie_Plugin_Iterator Provides a fluent interface

Описание свойств

$methods защищенное свойство

List of method names where plugins with these methods will be excluded when iterating
protected array $methods
Результат array

$plugins защищенное свойство

List of short names of plugins to exclude when iterating
protected array $plugins
Результат array