Property list iterator.
More...
Property list iterator.
Do not instantiate this class directly.
Definition at line 6 of file PropertyListIterator.php.
◆ __construct()
HTMLPurifier_PropertyListIterator::__construct |
( |
Iterator |
$iterator, |
|
|
|
$filter = null |
|
) |
| |
- Parameters
-
Iterator | $iterator | Array of data to iterate over |
string | $filter | Optional prefix to only allow values of |
Definition at line 22 of file PropertyListIterator.php.
23 {
24 parent::__construct($iterator);
27 }
References $filter.
◆ accept()
HTMLPurifier_PropertyListIterator::accept |
( |
| ) |
|
- Returns
- bool
Definition at line 32 of file PropertyListIterator.php.
33 {
34 $key = $this->getInnerIterator()->key();
35 if (strncmp($key, $this->filter, $this->l) !== 0) {
36 return false;
37 }
38 return true;
39 }
◆ $filter
HTMLPurifier_PropertyListIterator::$filter |
|
protected |
◆ $l
HTMLPurifier_PropertyListIterator::$l |
|
protected |
The documentation for this class was generated from the following file: