当前位置: 首页>>代码示例>>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;未经允许,请勿转载。