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


PHP Plugins::errors方法代碼示例

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


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

示例1: __construct

 public function __construct($params = array())
 {
     $this->_ci = get_instance();
     // Codeigniter instance
     self::$instance = $this;
     // Instance of this class
     // Driver library only available on CI 2.0+
     if (CI_VERSION >= 2.0) {
         $this->_ci->load->driver('cache', array('adapter' => 'apc', 'backup' => 'file'));
     }
     $this->_ci->load->database();
     $this->_ci->load->helper('directory');
     $this->_ci->load->helper('file');
     // Set the plugins directory if passed via paramater
     if (array_key_exists('plugins_dir', $params)) {
         $this->set_plugin_dir($params['plugins_dir']);
     } else {
         $this->set_plugin_dir(FCPATH . "plugins/");
     }
     // Remove index.php string on the plugins directory if any
     $this->plugins_dir = str_replace("index.php", "", $this->plugins_dir);
     $this->find_plugins();
     // Find all plugins
     $this->get_activated_plugins();
     // Get all activated plugins
     $this->get_plugin_infos();
     // Gets information about all plugins and stores it
     $this->include_plugins();
     // Include plugins
     self::$messages = "";
     // Clear messages
     self::$errors = "";
     // Clear errors
 }
開發者ID:sugengstiki,項目名稱:Kalkun,代碼行數:34,代碼來源:Plugins.php

示例2: __construct

 /**
  * Constructor
  * 
  * @param mixed $params
  * @return Plugins
  */
 public function __construct($params = array())
 {
     // Codeigniter instance
     $this->_ci =& get_instance();
     $this->_ci->load->database();
     $this->_ci->load->helper('directory');
     $this->_ci->load->helper('file');
     $this->_ci->load->helper('url');
     // Set the plugins directory if passed via paramater
     if (array_key_exists('plugins_dir', $params)) {
         $this->set_plugin_dir($params['plugins_dir']);
     } else {
         $basepath = str_replace("\\", "/", FCPATH);
         $this->set_plugin_dir($basepath . "plugins/");
     }
     // Remove index.php string on the plugins directory if any
     $this->plugins_dir = str_replace("index.php", "", $this->plugins_dir);
     // Find all plugins
     $this->find_plugins();
     // Get all activated plugins
     $this->get_activated_plugins();
     // Include plugins
     $this->include_plugins();
     self::$messages = "";
     // Clear messages
     self::$errors = "";
     // Clear errors
 }
開發者ID:xenioushk,項目名稱:CI-Plugin-System,代碼行數:34,代碼來源:Plugins.php

示例3: __construct

 public function __construct()
 {
     $this->_ci = get_instance();
     // Codeigniter instance
     self::$instance = $this;
     // Instance of this class
     $this->_ci->load->driver('cache', array('adapter' => 'apc', 'backup' => 'file'));
     $this->_ci->load->helper('directory');
     $this->_ci->load->helper('file');
     // Set the plugins directory if not already set
     if (is_null($this->plugins_dir)) {
         $this->plugins_dir = FCPATH . "plugins/";
     }
     $this->find_plugins();
     // Find all plugins
     $this->get_activated_plugins();
     // Get all activated plugins
     $this->get_plugin_infos();
     // Gets information about all plugins and stores it
     $this->include_plugins();
     // Include plugins
     self::$messages = "";
     // Clear messages
     self::$errors = "";
     // Clear errors
 }
開發者ID:Apeplazas,項目名稱:plazadelatecnologia,代碼行數:26,代碼來源:Plugins.php

示例4: __construct

 /**
 * Constructor
 * 
 * @param mixed $params
 * @return Plugins
 */
 public function __construct($params = array())
 {
     $this->_ci      = get_instance(); // Codeigniter instance
     self::$instance = $this;          // Instance of this class
     
     $this->_ci->load->database();
     $this->_ci->load->helper('directory');
     $this->_ci->load->helper('file');
     $this->_ci->load->helper('url');
     
     // Set the plugins directory if passed via paramater
     if (array_key_exists('plugins_dir', $params))
     {
     	$this->set_plugin_dir($params['plugins_dir']);
     }
     else // else set to default value
     {
     	$this->set_plugin_dir(FCPATH . "plugins");
     }
     
     // Remove index.php string on the plugins directory if any
     $this->plugins_dir = str_replace("index.php", "", $this->plugins_dir);      
             
     $this->find_plugins();          // Find all plugins
     $this->get_activated_plugins(); // Get all activated plugins
     $this->get_plugin_infos();      // Gets information about all plugins and stores it
     $this->include_plugins();       // Include plugins
     
     self::$messages = ""; // Clear messages
     self::$errors   = ""; // Clear errors                      
 }
開發者ID:Nakei,項目名稱:FoOlSlide,代碼行數:37,代碼來源:Plugins.php


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