芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/public_html/cloud.pulsehost.co.uk/modules/Files/Classes/FileItem.php
\Aurora\System\Api::getAuthenticatedUserId(), 'Id' => $this->Id, 'Type' => $this->TypeStr, 'Path' => $this->Path, 'Name' => $this->Id, 'FileName' => $this->Name, 'Shared' => $this->Shared, 'GroupId' => $this->GroupId ]; if (isset($sPublicHash)) { $aResult['PublicHash'] = $sPublicHash; } return \Aurora\System\Api::EncodeKeyValues($aResult); } public function toResponseArray($aParameters = []) { $aArgs = [$this]; $aResult = []; \Aurora\System\EventEmitter::getInstance()->emit( 'Files', 'FileItemtoResponseArray', $aArgs, $aResult ); $aResult['Id'] = $this->Id; $aResult['Type'] = $this->TypeStr; $aResult['Path'] = $this->Path; $aResult['FullPath'] = $this->FullPath; $aResult['Name'] = $this->Name; $aResult['Size'] = $this->Size; $aResult['IsFolder'] = $this->IsFolder; $aResult['IsLink'] = $this->IsLink; $aResult['LinkType'] = $this->LinkType; $aResult['LinkUrl'] = $this->LinkUrl; $aResult['LastModified'] = $this->LastModified; $aResult['ContentType'] = $this->ContentType; $aResult['OembedHtml'] = $this->OembedHtml; $aResult['Published'] = $this->Published; $aResult['Owner'] = $this->Owner; $aResult['Content'] = $this->Content; $aResult['IsExternal'] = $this->IsExternal; $aResult['Actions'] = $this->Actions; $aResult['Hash'] = $this->getHash(); $aResult['ETag'] = $this->ETag; $aResult['ExtendedProps'] = $this->ExtendedProps; $aResult['Shared'] = $this->Shared; $aResult['GroupId'] = $this->GroupId === null ? 0 : $this->GroupId; $aResult['Initiator'] = $this->Initiator === null ? '' : $this->Initiator; if ($this->Thumb) { if (empty($this->ThumbnailUrl) && $this->GetActionUrl('download')) { $this->ThumbnailUrl = $this->GetActionUrl('download') . '/thumb'; } $aResult['ThumbnailUrl'] = $this->ThumbnailUrl; } return $aResult; } public function UnshiftAction($aAction) { $sKey = key($aAction); $aActions = $this->Actions; if (isset($aActions[$sKey])) { unset($aActions[$sKey]); } $aActions = \array_merge($aAction, $aActions); $this->Actions = $aActions; } public function AddAction($aAction) { $sKey = key($aAction); $aActions = $this->Actions; $aActions[$sKey] = $aAction[$sKey]; $this->Actions = $aActions; } public function GetActionUrl($sAction) { $bResult = false; $aActions = $this->Actions; if (isset($aActions[$sAction]) && isset($aActions[$sAction]['url'])) { $bResult = $aActions[$sAction]['url']; } return $bResult; } public function GetActions() { return $this->Actions; } }