ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups 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

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.

{
parent::__construct($iterator);
$this->l = strlen($filter);
$this->filter = $filter;
}

Member Function Documentation

HTMLPurifier_PropertyListIterator::accept ( )

Definition at line 22 of file PropertyListIterator.php.

{
$key = $this->getInnerIterator()->key();
if( strncmp($key, $this->filter, $this->l) !== 0 ) {
return false;
}
return true;
}

Field Documentation

HTMLPurifier_PropertyListIterator::$filter
protected

Definition at line 10 of file PropertyListIterator.php.

Referenced by __construct().

HTMLPurifier_PropertyListIterator::$l
protected

Definition at line 9 of file PropertyListIterator.php.


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