ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
PropertyListIterator.php
Go to the documentation of this file.
1
<?php
2
6
class
HTMLPurifier_PropertyListIterator
extends
FilterIterator
7
{
8
12
protected
$l
;
16
protected
$filter
;
17
22
public
function
__construct
(
Iterator
$iterator,
$filter
= null)
23
{
24
parent::__construct($iterator);
25
$this->l = strlen(
$filter
);
26
$this->filter =
$filter
;
27
}
28
32
public
function
accept
()
33
{
34
$key
= $this->getInnerIterator()->key();
35
if
(strncmp(
$key
, $this->filter, $this->l) !== 0) {
36
return
false
;
37
}
38
return
true
;
39
}
40
}
41
42
// vim: et sw=4 sts=4
HTMLPurifier_PropertyListIterator\$l
$l
int
Definition:
PropertyListIterator.php:12
HTMLPurifier_PropertyListIterator
Property list iterator.
Definition:
PropertyListIterator.php:6
FilterIterator
HTMLPurifier_PropertyListIterator\accept
accept()
Definition:
PropertyListIterator.php:32
HTMLPurifier_PropertyListIterator\__construct
__construct(Iterator $iterator, $filter=null)
Definition:
PropertyListIterator.php:22
Iterator
$key
$key
Definition:
croninfo.php:18
HTMLPurifier_PropertyListIterator\$filter
$filter
string
Definition:
PropertyListIterator.php:16
libs
composer
vendor
ezyang
htmlpurifier
library
HTMLPurifier
PropertyListIterator.php
Generated on Sat Jan 18 2025 19:01:02 for ILIAS by
1.8.13 (using
Doxyfile
)