ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
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
 
 $filter
 

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
$dataArray of data to iterate over
$filterOptional prefix to only allow values of

Definition at line 16 of file PropertyListIterator.php.

References $filter.

16  {
17  parent::__construct($iterator);
18  $this->l = strlen($filter);
19  $this->filter = $filter;
20  }

Member Function Documentation

◆ accept()

HTMLPurifier_PropertyListIterator::accept ( )

Definition at line 22 of file PropertyListIterator.php.

22  {
23  $key = $this->getInnerIterator()->key();
24  if( strncmp($key, $this->filter, $this->l) !== 0 ) {
25  return false;
26  }
27  return true;
28  }

Field Documentation

◆ $filter

HTMLPurifier_PropertyListIterator::$filter
protected

Definition at line 10 of file PropertyListIterator.php.

Referenced by __construct().

◆ $l

HTMLPurifier_PropertyListIterator::$l
protected

Definition at line 9 of file PropertyListIterator.php.


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