當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Folder::getReadablePath方法代碼示例

本文整理匯總了PHP中TYPO3\CMS\Core\Resource\Folder::getReadablePath方法的典型用法代碼示例。如果您正苦於以下問題:PHP Folder::getReadablePath方法的具體用法?PHP Folder::getReadablePath怎麽用?PHP Folder::getReadablePath使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在TYPO3\CMS\Core\Resource\Folder的用法示例。


在下文中一共展示了Folder::getReadablePath方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: start

 /**
  * Initialization of class
  *
  * @param Folder $folderObject The folder to work on
  * @param int $pointer Pointer
  * @param bool $sort Sorting column
  * @param bool $sortRev Sorting direction
  * @param bool $clipBoard
  * @param bool $bigControlPanel Show clipboard flag
  * @return void
  */
 public function start(Folder $folderObject, $pointer, $sort, $sortRev, $clipBoard = FALSE, $bigControlPanel = FALSE)
 {
     $this->script = BackendUtility::getModuleUrl('file_list');
     $this->folderObject = $folderObject;
     $this->counter = 0;
     $this->totalbytes = 0;
     $this->JScode = '';
     $this->HTMLcode = '';
     $this->path = $folderObject->getReadablePath();
     $this->sort = $sort;
     $this->sortRev = $sortRev;
     $this->firstElementNumber = $pointer;
     $this->clipBoard = $clipBoard;
     $this->bigControlPanel = $bigControlPanel;
     // Setting the maximum length of the filenames to the user's settings or minimum 30 (= $this->fixedL)
     $this->fixedL = max($this->fixedL, $this->getBackendUser()->uc['titleLen']);
     $this->getLanguageService()->includeLLFile('EXT:lang/locallang_common.xlf');
     $this->resourceFactory = ResourceFactory::getInstance();
 }
開發者ID:adrolli,項目名稱:TYPO3.CMS,代碼行數:30,代碼來源:FileList.php


注:本文中的TYPO3\CMS\Core\Resource\Folder::getReadablePath方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。