SPL-StandardPHPLibrary
recursiveregexiterator.inc
Go to the documentation of this file.
1 <?php
2 
21 {
35  parent::__construct($it, $regex, $mode, $flags, $preg_flags);
36  }
37 
40  function hasChildren()
41  {
42  return $this->getInnerIterator()->hasChildren();
43  }
44 
49  function getChildren()
50  {
51  if (empty($this->ref))
52  {
53  $this->ref = new ReflectionClass($this);
54  }
55  return $this->ref->newInstance($this->getInnerIterator()->getChildren());
56  }
57 
58  private $ref;
59 }
60 
61 ?>
$flags
special flags (self::USE_KEY)
Interface for recursive iteration with RecursiveIteratorIterator.
$regex
the regular expression to match against
Recursive regular expression filter for iterators.
__construct(RecursiveIterator $it, $regex, $mode=0, $flags=0, $preg_flags=0)
Constructs a regular expression filter around an iterator whose elemnts or keys are strings...
Regular expression filter for iterators.
$mode
operation mode (one of self::MATCH, self::GET_MATCH, self::ALL_MATCHES, self::SPLIT) ...
$preg_flags
PREG_* flags, see preg_match(), preg_match_all(), preg_split()