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); }
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); }
/** * Tests CKFinder->SetupFCKeditorObject() */ public function testSetupFCKeditorObject() { // TODO Auto-generated CKFinderTest->testSetupFCKeditorObject() $this->markTestIncomplete("SetupFCKeditorObject test not implemented"); $this->cKFinder->SetupFCKeditorObject(); }