本文整理汇总了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
}
示例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
}
示例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
}
示例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
}