diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2011-07-23 00:11:34 +0200 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2011-07-23 00:11:34 +0200 |
commit | 8731f641de823fcdcb8b2a2fa6034fca8fe4a164 (patch) | |
tree | 50b89af87337c124aeac2b670bf7175cf01c19c1 /system/core | |
parent | 909105135439ac2ade75a99922f77c038e882fee (diff) |
Added ->load->get_var() to check against ->load->_ci_cached_vars[].
Diffstat (limited to 'system/core')
-rw-r--r-- | system/core/Loader.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php index 721c196cc..7c8b298ac 100644 --- a/system/core/Loader.php +++ b/system/core/Loader.php @@ -389,6 +389,21 @@ class CI_Loader { // -------------------------------------------------------------------- /** + * Get Variable + * + * Check if a variable is set and retrieve it. + * + * @param array + * @return void + */ + public function get_var($key) + { + return isset($this->_ci_cached_vars[$key]) ? $this->_ci_cached_vars[$key] : NULL; + } + + // -------------------------------------------------------------------- + + /** * Load Helper * * This function loads the specified helper file. |