function __construct($nestingFolder, $fileSystemFileName) { $metaInfos = $this->getFileMetaInfos($fileSystemFileName); $name = $metaInfos['name']; $this->readGroups = $metaInfos['readgroups']; parent::__construct($nestingFolder, $name, $fileSystemFileName); $this->type = 2; $this->size = filesize($this->getFileSystemPath()); $this->owningAmt = $nestingFolder->owningAmt; }
function __construct($nestingFolder, $name, $fileSystemFileName) { parent::__construct($nestingFolder, $name, $fileSystemFileName); $this->type = 1; if (is_object($nestingFolder) && !is_object($nestingFolder->nestingFolder)) { $this->isAmtsRootFolder = true; } if ($this->isAmtsRootFolder) { $this->owningAmt = $fileSystemFileName; } elseif (is_object($nestingFolder)) { $this->owningAmt = $nestingFolder->owningAmt; } if (isset($_SESSION['openFolders']) && is_array($_SESSION['openFolders'])) { if (isset($_SESSION['openFolders'][$this->getHash()]) && $_SESSION['openFolders'][$this->getHash()] == 1) { $this->isOpen = true; } } $this->scanFileSystem(); }