ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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)