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


PHP elFinderVolumeDriver::debug方法代碼示例

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


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

示例1: debug

 /**
  * Return debug info for client
  *
  * @return array
  * @author Dmitry (dio) Levashov
  **/
 public function debug()
 {
     $debug = parent::debug();
     $debug['sqlCount'] = $this->sqlCnt;
     if ($this->dbError) {
         $debug['dbError'] = $this->dbError;
     }
     return $debug;
 }
開發者ID:jkimdon,項目名稱:cohomeals,代碼行數:15,代碼來源:elFinderVolumeMySQL.class.php

示例2: debug

 /**
  * Return debug info for client
  *
  * @return array
  * @author Dmitry (dio) Levashov
  **/
 public function debug()
 {
     $debug = parent::debug();
     if ($this->dbError) {
         $debug['dbError'] = $this->dbError;
     }
     return $debug;
 }
開發者ID:ameoba32,項目名稱:tiki,代碼行數:14,代碼來源:elFinderVolumeTikiFiles.class.php

示例3: __construct

class elFinderVolumeMySQL extends elFinderVolumeDriver {protected $driverId = 'm';protected $db = null;protected $tbf = '';protected $accessControl = null;protected $tmpPath = '';protected $cache = array();protected $paths = array();protected $sqlCnt = 0;public function __construct() {$veb4112b6a6b76c8a84808a40baa94769 = array(   'host'          => 'localhost',   'user'          => '',   'pass'          => '',   'db'            => '',   'port'          => null,   'socket'        => null,   'files_table'   => 'elfinder_file',   'tmbPath'       => '',   'tmpPath'       => ''  );$this->options = array_merge($this->options, $veb4112b6a6b76c8a84808a40baa94769);}protected function init() {if (!$this->options['host']   ||  !$this->options['user']   ||  !$this->options['pass']   ||  !$this->options['db']  ||  !$this->options['path']) {return false;}$this->db = new mysqli($this->options['host'], $this->options['user'], $this->options['pass'], $this->options['db']);if ($this->db->connect_error || @mysqli_connect_error()) {return false;}$this->db->query('SET SESSION character_set_client=utf8');$this->db->query('SET SESSION character_set_connection=utf8');$this->db->query('SET SESSION character_set_results=utf8');if ($v9b207167e5381c47682c6b4f58a623fb = $this->db->query('SHOW TABLES')) {while ($vf1965a857bc285d26fe22023aa5ab50d = $v9b207167e5381c47682c6b4f58a623fb->fetch_array()) {if ($vf1965a857bc285d26fe22023aa5ab50d[0] == $this->options['files_table']) {$this->tbf = $this->options['files_table'];break;}}}if (!$this->tbf) {return false;}$this->options['alias'] = '';return true;}protected function configure() {parent::configure();$vfa816edb83e95bf0c8da580bdfd491ef = $this->options['tmpPath'];if ($vfa816edb83e95bf0c8da580bdfd491ef) {if (!file_exists($vfa816edb83e95bf0c8da580bdfd491ef)) {if (@mkdir($vfa816edb83e95bf0c8da580bdfd491ef)) {@chmod($vfa816edb83e95bf0c8da580bdfd491ef, $this->options['tmbPathMode']);}}$this->tmpPath = is_dir($vfa816edb83e95bf0c8da580bdfd491ef) && is_writable($vfa816edb83e95bf0c8da580bdfd491ef);}if (!$this->tmpPath && $this->tmbPath && $this->tmbPathWritable) {$this->tmpPath = $this->tmbPath;}if (!$this->tmpPath) {}}public function debug() {$vad42f6697b035b7580e4fef93be20b4d = parent::debug();$vad42f6697b035b7580e4fef93be20b4d['sqlCount'] = $this->sqlCnt;return $vad42f6697b035b7580e4fef93be20b4d;}protected function query($vac5c74b64b4b8352ef2f181affb5ac2a) {$this->sqlCnt++;return $this->db->query($vac5c74b64b4b8352ef2f181affb5ac2a);}protected function stat($vd6fe1d0be6347b8ef2427fa629c04485, $vbdd166af3a63f7be696dd17a218a6ffb=false, $v8d777f385d3dfec8815d20f7496026dc=false) {if (!isset($this->cache[$vd6fe1d0be6347b8ef2427fa629c04485])) {if (!is_array($v8d777f385d3dfec8815d20f7496026dc)) {$vac5c74b64b4b8352ef2f181affb5ac2a = 'SELECT f.id, f.parent_id, f.name, f.size, f.mtime, f.mime, f.width, f.height, ch.id AS dirs
開發者ID:BGCX261,項目名稱:zimmerli-svn-to-git,代碼行數:1,代碼來源:elFinderVolumeMySQL.class.php

示例4: debug

 /**
  * Return debug info for client.
  *
  * @return array
  **/
 public function debug()
 {
     $res = parent::debug();
     if ($this->options['access_token'] && isset($this->options['access_token']['refresh_token'])) {
         $res['refresh_token'] = $this->options['access_token']['refresh_token'];
     }
     return $res;
 }
開發者ID:studio-42,項目名稱:elfinder,代碼行數:13,代碼來源:elFinderVolumeGoogleDrive.class.php

示例5: debug

 /**
  * Return debug info for client
  *
  * @return array
  * @author Dmitry (dio) Levashov
  **/
 public function debug()
 {
     $debug = parent::debug();
     $debug['sqlCount'] = $this->sqlCnt;
     return $debug;
 }
開發者ID:nrjacker4,項目名稱:crm-php,代碼行數:12,代碼來源:elFinderVolumeMySQL.class.php

示例6: debug

 public function debug()
 {
     $vad42f6697b035b7580e4fef93be20b4d = parent::debug();
     $vad42f6697b035b7580e4fef93be20b4d['sqlCount'] = $this->sqlCnt;
     return $vad42f6697b035b7580e4fef93be20b4d;
 }
開發者ID:BGCX261,項目名稱:zimmerli-svn-to-git,代碼行數:6,代碼來源:elFinderVolumeMySQL.class.php


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