當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CKFinder::Create方法代碼示例

本文整理匯總了PHP中CKFinder::Create方法的典型用法代碼示例。如果您正苦於以下問題:PHP CKFinder::Create方法的具體用法?PHP CKFinder::Create怎麽用?PHP CKFinder::Create使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CKFinder的用法示例。


在下文中一共展示了CKFinder::Create方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: indexAction

 public function indexAction()
 {
     $config = $this->getServiceLocator()->get('CKFinderModule\\Config');
     $ckFinderPath = realpath($config['ckfinder_vendor_path']) . '/';
     if (!file_exists($ckFinderPath . 'ckfinder.php')) {
         throw new \Exception('The ckfinder path "' . $ckFinderPath . '" does not seem to be valid');
     }
     // Otherwise, we're going to need the CKFinder class
     require_once $ckFinderPath . 'ckfinder.php';
     // You can use the "CKFinder" class to render CKFinder in a page:
     $finder = new \CKFinder();
     // The path for the installation of CKFinder (default = "/ckfinder/").
     $finder->BasePath = $config['ckfinder_basepath'];
     $finder->Width = $config['ckfinder_width'];
     $finder->Height = $config['ckfinder_height'];
     $finder->Create();
     return $this->response;
 }
開發者ID:JaapMoolenaar,項目名稱:CKFinderModule,代碼行數:18,代碼來源:BrowseController.php

示例2: CreateStatic

 public static function CreateStatic($basePath = CKFINDER_DEFAULT_BASEPATH, $width = '100%', $height = 400, $selectFunction = null)
 {
     $finder = new CKFinder($basePath, $width, $height, $selectFunction);
     $finder->Create();
 }
開發者ID:rezarahimi4861,項目名稱:icmf,代碼行數:5,代碼來源:ckfinder_php5.php

示例3: selected

	</h1>
	<div class="description">
		CKFinder may be used in standalone mode inside any page, to create a repository
		manager with ease. You may define a custom JavaScript function to be called when
		an image is selected (double-clicked).</div>
	<p style="padding-left: 30px; padding-right: 30px;">
<?php 
require_once '../../ckfinder.php';
// You can use the "CKFinder" class to render CKFinder in a page:
$finder = new CKFinder();
$finder->BasePath = '../../';
// The path for the installation of CKFinder (default = "/ckfinder/").
$finder->SelectFunction = 'ShowFileInfo';
// The default height is 400.
$finder->Height = 600;
$finder->Create();
// It can also be done in a single line, calling the "static"
// Create( basePath, width, height, selectFunction ) function:
// CKFinder::CreateStatic( '../../', null, null, 'ShowFileInfo' ) ;
?>
	</p>
	<div id="footer">
		<hr />
		<p>
			CKFinder - Ajax File Manager - <a class="samples" href="http://cksource.com/ckfinder/">http://cksource.com/ckfinder</a>
		</p>
		<p id="copy">
			Copyright &copy; 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved.
		</p>
	</div>
</body>
開發者ID:ducdm87,項目名稱:gamelienminh,代碼行數:31,代碼來源:standalone.php

示例4: testCreate

 /**
  * Tests CKFinder->Create()
  */
 public function testCreate()
 {
     // TODO Auto-generated CKFinderTest->testCreate()
     $this->markTestIncomplete("Create test not implemented");
     $this->cKFinder->Create();
 }
開發者ID:ade24,項目名稱:vcorner,代碼行數:9,代碼來源:CKFinderTest.php


注:本文中的CKFinder::Create方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。