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