本文整理汇总了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);
}
示例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);
}
示例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();
}