ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
PropertyListIterator.php
Go to the documentation of this file.
1 <?php
2 
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
__construct(Iterator $iterator, $filter=null)
$key
Definition: croninfo.php:18