当前位置: 首页>>代码示例>>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;未经允许,请勿转载。