ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
HTMLPurifier_PropertyListIterator Class Reference

Property list iterator. More...

+ Inheritance diagram for HTMLPurifier_PropertyListIterator:
+ Collaboration diagram for HTMLPurifier_PropertyListIterator:

Public Member Functions

 __construct (Iterator $iterator, $filter=null)
 
 accept ()
 

Protected Attributes

 $l
 @type int More...
 
 $filter
 @type string More...
 

Detailed Description

Property list iterator.

Do not instantiate this class directly.

Definition at line 6 of file PropertyListIterator.php.

Constructor & Destructor Documentation

◆ __construct()

HTMLPurifier_PropertyListIterator::__construct ( Iterator  $iterator,
  $filter = null 
)
Parameters
Iterator$iteratorArray of data to iterate over
string$filterOptional prefix to only allow values of

Definition at line 22 of file PropertyListIterator.php.

23 {
24 parent::__construct($iterator);
25 $this->l = strlen($filter);
26 $this->filter = $filter;
27 }

References $filter.

Member Function Documentation

◆ 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 }

Field Documentation

◆ $filter

HTMLPurifier_PropertyListIterator::$filter
protected

@type string

Definition at line 16 of file PropertyListIterator.php.

Referenced by __construct().

◆ $l

HTMLPurifier_PropertyListIterator::$l
protected

@type int

Definition at line 12 of file PropertyListIterator.php.


The documentation for this class was generated from the following file: