%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 18.119.102.46 Web Server : Apache/2.4.52 (Ubuntu) System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 User : www-root ( 1010) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/main/lib/web/dom/ |
Upload File : |
<?php namespace Bitrix\Main\Web\DOM; /* class NodeList extends \Bitrix\Main\Type\Dictionary implements \Traversable { public function item($index) { return $this->offsetGet($index); } public function haveItem(Node $item) { for($i = 0; $i < $this->count(); $i++) { if($item->isEqual($this->item($i))) { return true; } } return false; } public function removeItem(Node $item) { for($i = 0; $i < $this->count(); $i++) { if($item === $this->item($i)) { $this->offsetUnset($i); break; } } } } */ class NodeList implements \Iterator { protected $length = 0; protected $position = 0; protected $values = array(); public function __construct(array $values = null) { if($values === null) { $this->position = 0; $this->set($values); } } public function getLength() { return $this->length; } /* * @return Node|null */ public function item($index) { if($this->valid($index)) { return $this->values[$index]; } return null; } public function set(array $values) { if($values !== null) { $this->values = array_values($values); $this->length = count($this->values); } } public function get() { return $this->values; } public function rewind() { $this->position = 0; } public function current() { return $this->values[$this->position]; } public function key() { return $this->position; } public function next() { ++$this->position; } public function valid($index = null) { if($index === null) { $index = $this->position; } return isset($this->values[$index]); } }