Searched refs:it (Results 1 - 25 of 57) sorted by relevance

123

/PHP_5_3/ext/spl/examples/
H A Dcallbackfilteriterator.inc37 * @param it inner iterator (iterator to filter)
42 public function __construct(Iterator $it, $callback, $mode = self::USE_VALUE, $flags = 0)
44 parent::__construct($it);
H A Dclass_tree.php105 $it = new RecursiveTreeIterator(new SubClasses($argv[1], true)); variable
108 foreach($it as $c=>$v)
H A Ddirectoryfilterdots.inc17 * This Iterator takes a pathname from which it creates a RecursiveDirectoryIterator
18 * and makes it recursive. Further more it filters the entries '.' and '..'.
H A Ddualiterator.inc172 $it = new RecursiveDualIterator($lhs, $rhs,
174 $it = new RecursiveCompareDualIterator($it);
183 $it = new DualIterator($lhs, $rhs, self::CURRENT_0 | self::KEY_0);
188 foreach($it as $n)
190 if (!$it->areIdentical())
198 foreach($it as $n)
200 if (!$it->areEqual())
206 return $identical ? $it->areIdentical() : $it
[all...]
H A Dfindfile.inc30 * part of it is used as separate directory.
40 $it = new AppendIterator();
42 $it->append(new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path)));
44 parent::__construct($it);
H A Dini_groups.php32 $it = new IniGroups($argv[1]); variable
34 $it = new KeyFilter($it, $argv[2]); variable
37 foreach($it as $group) {
H A Dkeyfilter.inc32 * @param it Object that implements at least spl_forward
35 function __construct(Iterator $it, $regex)
37 parent::__construct($it);
H A Dnocvsdir.php19 Show the directory and all it's contents without any CVS directory in <path>.
48 $it = new RecursiveIteratorIterator(new NoCvsDirectory($argv[1])); variable
50 foreach($it as $pathname => $file)
H A Drecursivecomparedualiterator.inc26 * @param $it RecursiveDualIterator
30 function __construct(RecursiveDualIterator $it, $mode = self::LEAVES_ONLY, $flags = 0)
32 parent::__construct($it);
H A Dregexfindfile.inc24 * part of it is used as separate directory.
H A Dsearchiterator.inc25 /** Rewind and reset so that it once again searches.
/PHP_5_3/ext/spl/internal/
H A Dappenditerator.inc31 * @param $it Iterator to append
35 * call to $it->rewind(). Also if the current state is invalid the inner
38 function append(Iterator $it)
40 $this->iterators->append($it);
69 /** @return the current value if it is valid or \c NULL
73 /* Using $this->valid() would be exactly the same; it would omit
80 /** @return the current key if it is valid or \c NULL
H A Dcachingiterator.inc18 * This iterator wrapper does a one ahead iteration. This way it knows whether
25 * already changed iterator. If you do not need this then it you should
26 * omit this flag because it costs unneccessary work and time.
35 private $it;
43 * @param it Iterator to cache
47 function __construct(Iterator $it, $flags = self::CALL_TOSTRING)
54 $this->it = $it;
63 $this->it->rewind();
71 if ($this->valid = $this->it
[all...]
H A Dfilteriterator.inc24 * key of the inner Iterator and checking whether it is acceptable.
28 private $it;
33 * @param it Iterator to filter
35 function __construct(Iterator $it) {
36 $this->it = $it;
43 $this->it->rewind();
57 * Fetch next element and store it.
62 while ($this->it->valid()) {
66 $this->it
[all...]
H A Dinfiniteiterator.inc18 * This Iterator takes another Iterator and infinitvely iterates it by
19 * rewinding it when its end is reached.
24 $it = new ArrayIterator(array(1,2,3));
25 $infinite = new InfiniteIterator($it);
35 /** Move the inner Iterator forward to its next element or rewind it.
H A Dlimititerator.inc26 private $it;
33 * @param it Iterator to limit
37 function __construct(Iterator $it, $offset = 0, $count = -1)
45 $this->it = $it;
63 if ($this->it instanceof SeekableIterator) {
64 $this->it->seek($position);
67 while($this->pos < $position && $this->it->valid()) {
77 $this->it->rewind();
86 && $this->it
[all...]
H A Dparentiterator.inc28 return $this->it->hasChildren();
H A Drecursivecachingiterator.inc27 * @param it Iterator to cache
32 function __construct(RecursiveIterator $it, $flags = self::CALL_TOSTRING)
34 parent::__construct($it, $flags);
51 if ($this->hasChildren = $this->it->hasChildren())
55 $child = $this->it->getChildren();
H A Drecursivefilteriterator.inc21 * function getChildren() because it may not always suit your needs. The
23 * class it is called from. That is you extend RecursiveFilterIterator and
32 /** @param $it the RecursiveIterator to filter
34 function __construct(RecursiveIterator $it)
36 parent::__construct($it);
H A Drecursiveiteratoriterator.inc42 * @param it RecursiveIterator to iterate
53 function __construct(RecursiveIterator $it, $mode = self::LEAVES_ONLY, $flags = 0)
55 $this->ait[0] = $it;
79 $it = $this->ait[$count];
80 if ($it->valid()) {
93 $it = $this->ait[$this->count];
94 return $it->key();
101 $it = $this->ait[$this->count];
102 return $it->current();
110 $it
[all...]
H A Drecursiveregexiterator.inc26 * @param it inner iterator
34 function __construct(RecursiveIterator $it, $regex, $mode = 0, $flags = 0, $preg_flags = 0) {
35 parent::__construct($it, $regex, $mode, $flags, $preg_flags);
H A Drecursivetreeiterator.inc28 * @param it iterator to use as inner iterator
33 function __construct(RecursiveIterator $it, $rit_flags = self::BYPASS_KEY, $cit_flags = CachingIterator::CATCH_GET_CHILD, $mode = self::SELF_FIRST)
35 parent::__construct(new RecursiveCachingIterator($it, $cit_flags), $mode, $rit_flags);
/PHP_5_3/scripts/dev/
H A Dcredits13 it has been automaticaly created by php5/scripts/credits from
/PHP_5_3/ext/spl/
H A Dspl_directory.h12 | obtain it through the world-wide-web, please send a note to |
105 spl_filesystem_iterator it; member in struct:_spl_filesystem_object
110 return &obj->it;
113 static inline spl_filesystem_object* spl_filesystem_iterator_to_object(spl_filesystem_iterator *it) argument
115 return (spl_filesystem_object*)((char*)it - XtOffsetOf(spl_filesystem_object, it));
136 #define SPL_FILE_DIR_SKIPDOTS 0x00001000 /* Tells whether it should skip dots or not */
H A Dspl_observer.c12 | obtain it through the world-wide-web, please send a note to |
317 /* clean \x00gcdata, as it may be out of date */
977 zval *it; local
987 it = element->obj;
988 zend_call_method_with_0_params(&it, Z_OBJCE_P(it), &Z_OBJCE_P(it)->iterator_funcs.zf_rewind, "rewind", NULL);
1000 zval *it; local
1010 it = element->obj;
1011 zend_call_method_with_0_params(&it, Z_OBJCE_
1023 zval *it, *retval = NULL; local
1064 zval *it, *retval = NULL; local
[all...]

Completed in 20 milliseconds

123