芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/cloud.pulsehost.co.uk/vendor/afterlogic/dav/lib/DAV/FS/Shared/NodeTrait.php
getName(); } public function getDisplayName() { return $this->getName(); } public function setOwnerPublicId($sOwnerPublicId) { $this->ownerPublicId = $sOwnerPublicId; } public function getOwner() { return $this->getOwnerPublicId(); } public function getOwnerPublicId() { return $this->ownerPublicId; } public function setRelativeNodePath($sPath) { $this->relativeNodePath = $sPath; } public function getRelativeNodePath() { return $this->relativeNodePath; } public function getStorage() { if ($this->node) { return $this->node->getStorage(); } else { return 'unknown'; } } public function getRootPath() { if ($this->node) { return $this->node->getRootPath(); } else { return ''; } } public function getPath() { if ($this->node) { return $this->node->getPath(); } else { return ''; } } public function getName() { return $this->name; } /** * Renames the node * * @param string $name The new name * @return void */ public function setName($name) { if ($this->isInherited) { if ($this->node) { $aExtendedProps = $this->node->getProperty('ExtendedProps'); if (!(is_array($aExtendedProps) && isset($aExtendedProps['InitializationVector']))) { $this->node->setName($name); } } } else { $pdo = new \Afterlogic\DAV\FS\Backend\PDO(); $oNode = $pdo->getSharedFileByUidWithPath(Constants::PRINCIPALS_PREFIX . $this->getUser(), $name, $this->getSharePath()); if ($oNode) { throw new \Sabre\DAV\Exception\Conflict(); } $pdo->updateSharedFileName(Constants::PRINCIPALS_PREFIX . $this->getUser(), $this->name, $name, $this->getSharePath(), $this->getGroupId()); } } public function delete() { if ($this->isInherited) { if ($this->node) { $aExtendedProps = $this->node->getProperty('ExtendedProps'); if (!(is_array($aExtendedProps) && isset($aExtendedProps['InitializationVector']))) { $this->node->delete(); } } } else { $pdo = new \Afterlogic\DAV\FS\Backend\PDO(); return $pdo->deleteShare(Constants::PRINCIPALS_PREFIX . $this->getUser(), $this->getId(), $this->getSharePath()); } } public function setSharePath($sharePath) { $this->sharePath = $sharePath; } public function getSharePath() { return $this->sharePath; } public function setInherited($bIsInherited) { $this->isInherited = $bIsInherited; } public function isInherited() { return $this->isInherited; } public function getRelativePath() { if ($this->isInherited()) { return $this->node->getRelativePath(); } else { $sharePath = $this->getSharePath(); if ($sharePath) { return $sharePath; } else { return ''; } } } public function getNode() { return $this->node; } public function getGroupId() { return $this->groupId; } public function setGroupId($groupId) { $this->groupId = isset($groupId) ? (int) $groupId : 0; } public function getInitiator() { return $this->initiator; } public function setInitiator($initiator) { $this->initiator = $initiator; } public function getDbProperties() { return is_array($this->dbProperties) ? $this->dbProperties : []; } public function setDbProperties($dbProperties) { $this->dbProperties = $dbProperties; } }