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


PHP CKFinder::_BuildUrl方法代碼示例

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


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

示例1: SetupFCKeditor

 public static function SetupFCKeditor(&$editorObj, $basePath = CKFINDER_DEFAULT_BASEPATH, $imageType = null, $flashType = null)
 {
     if (empty($basePath)) {
         $basePath = CKFINDER_DEFAULT_BASEPATH;
     }
     // If it is a path relative to the current page.
     if ($basePath[0] != '/') {
         $basePath = substr($_SERVER['REQUEST_URI'], 0, strrpos($_SERVER['REQUEST_URI'], '/') + 1) . $basePath;
     }
     $ckfinder = new CKFinder($basePath);
     $url = $ckfinder->_BuildUrl();
     $editorObj->Config['LinkBrowserURL'] = $url;
     $editorObj->Config['ImageBrowserURL'] = $url . '?type=' . (empty($imageType) ? 'Images' : $imageType);
     $editorObj->Config['FlashBrowserURL'] = $url . '?type=' . (empty($flashType) ? 'Flash' : $flashType);
 }
開發者ID:kingwang317,項目名稱:it4fun-guam,代碼行數:15,代碼來源:ckfinder_php5.php

示例2: SetupFCKeditor

 public static function SetupFCKeditor(&$editorObj, $basePath = CKFINDER_DEFAULT_BASEPATH, $imageType = null, $flashType = null)
 {
     if (empty($basePath)) {
         $basePath = CKFINDER_DEFAULT_BASEPATH;
     }
     // If it is a path relative to the current page.
     if ($basePath[0] != '/') {
         $basePath = substr($_SERVER['REQUEST_URI'], 0, strrpos($_SERVER['REQUEST_URI'], '/') + 1) . $basePath;
     }
     $ckfinder = new CKFinder($basePath);
     $url = $ckfinder->_BuildUrl();
     $editorObj->Config['LinkBrowserURL'] = $url;
     $editorObj->Config['ImageBrowserURL'] = $url . '?type=' . (empty($imageType) ? 'Images' : $imageType);
     $editorObj->Config['FlashBrowserURL'] = $url . '?type=' . (empty($flashType) ? 'Flash' : $flashType);
     $dir = substr($url, 0, strrpos($url, "/") + 1);
     $editorObj->Config['LinkUploadURL'] = $dir . urlencode('core/connector/php/connector.php?command=QuickUpload&type=Files');
     $editorObj->Config['ImageUploadURL'] = $dir . urlencode('core/connector/php/connector.php?command=QuickUpload&type=') . (empty($imageType) ? 'Images' : $imageType);
     $editorObj->Config['FlashUploadURL'] = $dir . urlencode('core/connector/php/connector.php?command=QuickUpload&type=') . (empty($flashType) ? 'Flash' : $flashType);
 }
開發者ID:kingwang317,項目名稱:it4fun-guam,代碼行數:19,代碼來源:ckfinder_php5.php

示例3: test_BuildUrl

 /**
  * Tests CKFinder->_BuildUrl()
  */
 public function test_BuildUrl()
 {
     // TODO Auto-generated CKFinderTest->test_BuildUrl()
     $this->markTestIncomplete("_BuildUrl test not implemented");
     $this->cKFinder->_BuildUrl();
 }
開發者ID:ade24,項目名稱:vcorner,代碼行數:9,代碼來源:CKFinderTest.php


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