Файловый менеджер - Редактировать - /home/lmsyaran/public_html/libraries/gantry5/vendor/rockettheme/toolbox/ResourceLocator/src/RecursiveUniformResourceIterator.php
Назад
<?php namespace RocketTheme\Toolbox\ResourceLocator; /** * Implements recursive iterator over filesystem. * * @package RocketTheme\Toolbox\ResourceLocator * @author RocketTheme * @license MIT */ class RecursiveUniformResourceIterator extends UniformResourceIterator implements \SeekableIterator, \RecursiveIterator { protected $subPath; public function getChildren() { $subPath = $this->getSubPathName(); return (new static($this->getUrl(), $this->flags, $this->locator))->setSubPath($subPath); } public function hasChildren($allow_links = null) { $allow_links = (bool) ($allow_links !== null ? $allow_links : $this->flags & \FilesystemIterator::FOLLOW_SYMLINKS); return $this->iterator && $this->isDir() && !$this->isDot() && ($allow_links || !$this->isLink()); } public function getSubPath() { return $this->subPath; } public function getSubPathName() { return ($this->subPath ? $this->subPath . '/' : '') . $this->getFilename(); } /** * @param $path * @return $this * @internal */ public function setSubPath($path) { $this->subPath = $path; return $this; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка