XOOPS 2.5.6
Final
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
PropertyListIterator.php
Go to the documentation of this file.
1
<?php
2
6
class
HTMLPurifier_PropertyListIterator
extends
FilterIterator
7
{
8
9
protected
$l
;
10
protected
$filter
;
11
16
public
function
__construct
(Iterator $iterator,
$filter
= null) {
17
parent::__construct($iterator);
18
$this->l = strlen(
$filter
);
19
$this->filter =
$filter
;
20
}
21
22
public
function
accept
() {
23
$key = $this->getInnerIterator()->key();
24
if
( strncmp($key, $this->filter, $this->l) !== 0 ) {
25
return
false
;
26
}
27
return
true
;
28
}
29
30
}
31
32
// vim: et sw=4 sts=4
L:
0xoops
xoops-2.5.6
htdocs
xoops_lib
modules
protector
library
HTMLPurifier
PropertyListIterator.php
Generated on Fri May 10 2013 01:04:30 for XOOPS 2.5.6 by
1.8.3.1