Lines Matching refs:valid
33 * If the current state is invalid but the appended iterator is valid
34 * the AppendIterator itself becomes valid. However there will be no
56 if ($this->iterators->valid())
62 /** @return whether the current element is valid
64 function valid()
66 return $this->iterators->valid() && $this->getInnerIterator()->valid();
69 /** @return the current value if it is valid or \c NULL
73 /* Using $this->valid() would be exactly the same; it would omit
74 * the access to a non valid element in the inner iterator. Since
75 * the user didn't respect the valid() return value false this
77 return $this->iterators->valid() ? $this->getInnerIterator()->current() : NULL;
80 /** @return the current key if it is valid or \c NULL
84 return $this->iterators->valid() ? $this->getInnerIterator()->key() : NULL;
93 if (!$this->iterators->valid())
98 if ($this->getInnerIterator()->valid())
100 return; /* found valid element in current inner iterator */
103 while ($this->iterators->valid())
106 if ($this->getInnerIterator()->valid())