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