summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2010-03-10 03:44:27 +0100
committerDerek Jones <derek.jones@ellislab.com>2010-03-10 03:44:27 +0100
commitc6da50384e06c60e242cb4442abb9c6c9b450674 (patch)
tree40f5e6dbc6c9d10b933c07be01de660ee8d6f2fb /system/core
parenta9730c337ef046f1c5391cec2a9e54ac613a4e6d (diff)
completely removed Plugins from CodeIgniter
Diffstat (limited to 'system/core')
-rw-r--r--system/core/Loader.php67
1 files changed, 4 insertions, 63 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php
index 1726f0a53..976823f81 100644
--- a/system/core/Loader.php
+++ b/system/core/Loader.php
@@ -41,7 +41,6 @@ class CI_Loader {
var $_ci_loaded_files = array();
var $_ci_models = array();
var $_ci_helpers = array();
- var $_ci_plugins = array();
var $_ci_varmap = array('unit_test' => 'unit', 'user_agent' => 'agent');
@@ -446,64 +445,6 @@ class CI_Loader {
// --------------------------------------------------------------------
/**
- * Load Plugin
- *
- * This function loads the specified plugin.
- *
- * @access public
- * @param array
- * @return void
- */
- function plugin($plugins = array())
- {
- foreach ($this->_ci_prep_filename($plugins, '_pi') as $plugin)
- {
- if (isset($this->_ci_plugins[$plugin]))
- {
- continue;
- }
-
- if (file_exists(APPPATH.'plugins/'.$plugin.EXT))
- {
- include_once(APPPATH.'plugins/'.$plugin.EXT);
- }
- else
- {
- if (file_exists(BASEPATH.'plugins/'.$plugin.EXT))
- {
- include_once(BASEPATH.'plugins/'.$plugin.EXT);
- }
- else
- {
- show_error('Unable to load the requested file: plugins/'.$plugin.EXT);
- }
- }
-
- $this->_ci_plugins[$plugin] = TRUE;
- log_message('debug', 'Plugin loaded: '.$plugin);
- }
- }
-
- // --------------------------------------------------------------------
-
- /**
- * Load Plugins
- *
- * This is simply an alias to the above function in case the
- * user has written the plural form of this function.
- *
- * @access public
- * @param array
- * @return void
- */
- function plugins($plugins = array())
- {
- $this->plugin($plugins);
- }
-
- // --------------------------------------------------------------------
-
- /**
* Loads a language file
*
* @access public
@@ -987,7 +928,7 @@ class CI_Loader {
* Autoloader
*
* The config/autoload.php file contains an array that permits sub-systems,
- * libraries, plugins, and helpers to be loaded automatically.
+ * libraries, and helpers to be loaded automatically.
*
* @access private
* @param array
@@ -1012,8 +953,8 @@ class CI_Loader {
}
}
- // Autoload plugins, helpers and languages
- foreach (array('helper', 'plugin', 'language') as $type)
+ // Autoload helpers and languages
+ foreach (array('helper', 'language') as $type)
{
if (isset($autoload[$type]) AND count($autoload[$type]) > 0)
{
@@ -1058,7 +999,7 @@ class CI_Loader {
/**
* Assign to Models
*
- * Makes sure that anything loaded by the loader class (libraries, plugins, etc.)
+ * Makes sure that anything loaded by the loader class (libraries, etc.)
* will be available to models, if any exist.
*
* @access private