⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.82
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-horde
/
imp
/
lib
/
Ftree
/
Edit File: Iterator.php
<?php /** * Copyright 2013-2017 Horde LLC (http://www.horde.org/) * * See the enclosed file COPYING for license information (GPL). If you * did not receive this file, see http://www.horde.org/licenses/gpl. * * @category Horde * @copyright 2013-2017 Horde LLC * @license http://www.horde.org/licenses/gpl GPL * @package IMP */ /** * Iterator for the IMP_Ftree object. * * @author Michael Slusarz <slusarz@horde.org> * @category Horde * @copyright 2013-2017 Horde LLC * @license http://www.horde.org/licenses/gpl GPL * @package IMP */ class IMP_Ftree_Iterator implements RecursiveIterator { /** * Sorted list of elements. * * @var array */ protected $_elts = array(); /** * Constructor. * * @param mixed $elt Either the parent element of the level * (IMP_Ftree_Element object), or a flat list of * Ftree elements to use as the base level. */ public function __construct($elt) { $this->_elts = ($elt instanceof IMP_Ftree_Element) ? $elt->child_list : $elt; } /* RecursiveIterator methods. */ /** */ public function getChildren() { return new self($this->current()); } /** */ public function hasChildren() { return $this->current()->children; } /** */ public function current() { return current($this->_elts); } /** */ public function key() { return key($this->_elts); } /** */ public function next() { next($this->_elts); } /** */ public function rewind() { reset($this->_elts); } /** */ public function valid() { return !is_null($this->key()); } }
Simpan