ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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
 int More...
 
 $filter
 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.

References $filter.

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

Member Function Documentation

◆ accept()

HTMLPurifier_PropertyListIterator::accept ( )
Returns
bool

Definition at line 32 of file PropertyListIterator.php.

References $key.

33  {
34  $key = $this->getInnerIterator()->key();
35  if (strncmp($key, $this->filter, $this->l) !== 0) {
36  return false;
37  }
38  return true;
39  }
$key
Definition: croninfo.php:18

Field Documentation

◆ $filter

HTMLPurifier_PropertyListIterator::$filter
protected

string

Definition at line 16 of file PropertyListIterator.php.

Referenced by __construct().

◆ $l

HTMLPurifier_PropertyListIterator::$l
protected

int

Definition at line 12 of file PropertyListIterator.php.


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