/var/www/vhosts/ihelp.ro/_OLD/vendor/cakephp/cakephp/src/Collection/Iterator
NameSizeModeActions
BufferedIterator.php47700644editdlrm
ExtractIterator.php29520644editdlrm
FilterIterator.php27390644editdlrm
InsertIterator.php38110644editdlrm
MapReduce.php57540644editdlrm
NestIterator.php22550644editdlrm
NoChildrenIterator.php13680644editdlrm
ReplaceIterator.php28780644editdlrm
SortIterator.php31200644editdlrm
StoppableIterator.php33170644editdlrm
TreeIterator.php34880644editdlrm
TreePrinter.php35180644editdlrm
UnfoldIterator.php26300644editdlrm
ZipIterator.php35840644editdlrm
Edit: /var/www/vhosts/ihelp.ro/_OLD/vendor/cakephp/cakephp/src/Collection/Iterator/InsertIterator.php (3811B)
_path = $path; $this->_target = $target; $this->_values = $values; } /** * Advances the cursor to the next record * * @return void */ public function next(): void { parent::next(); if ($this->_validValues) { $this->_values->next(); } $this->_validValues = $this->_values->valid(); } /** * Returns the current element in the target collection after inserting * the value from the source collection into the specified path. * * @return mixed */ public function current() { $row = parent::current(); if (!$this->_validValues) { return $row; } $pointer = &$row; foreach ($this->_path as $step) { if (!isset($pointer[$step])) { return $row; } $pointer = &$pointer[$step]; } $pointer[$this->_target] = $this->_values->current(); return $row; } /** * Resets the collection pointer. * * @return void */ public function rewind(): void { parent::rewind(); $this->_values->rewind(); $this->_validValues = $this->_values->valid(); } }