本文整理汇总了PHP中CKFinder::SetupFCKeditorObject方法的典型用法代码示例。如果您正苦于以下问题:PHP CKFinder::SetupFCKeditorObject方法的具体用法?PHP CKFinder::SetupFCKeditorObject怎么用?PHP CKFinder::SetupFCKeditorObject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CKFinder
的用法示例。
在下文中一共展示了CKFinder::SetupFCKeditorObject方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: SetupFCKeditor
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);
$ckfinder->SetupFCKeditorObject($editorObj, $imageType, $flashType);
}
示例2: SetupFCKeditor
public static function SetupFCKeditor(&$editorObj, $basePath = CKFINDER_DEFAULT_BASEPATH, $imageType = null, $flashType = null)
{
if (empty($basePath)) {
$basePath = CKFINDER_DEFAULT_BASEPATH;
}
$ckfinder = new CKFinder($basePath);
$ckfinder->SetupFCKeditorObject($editorObj, $imageType, $flashType);
}
示例3: testSetupFCKeditorObject
/**
* Tests CKFinder->SetupFCKeditorObject()
*/
public function testSetupFCKeditorObject()
{
// TODO Auto-generated CKFinderTest->testSetupFCKeditorObject()
$this->markTestIncomplete("SetupFCKeditorObject test not implemented");
$this->cKFinder->SetupFCKeditorObject();
}