summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2011-07-23 00:11:34 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-07-23 00:11:34 +0200
commit8731f641de823fcdcb8b2a2fa6034fca8fe4a164 (patch)
tree50b89af87337c124aeac2b670bf7175cf01c19c1 /system
parent909105135439ac2ade75a99922f77c038e882fee (diff)
Added ->load->get_var() to check against ->load->_ci_cached_vars[].
Diffstat (limited to 'system')
-rw-r--r--system/core/Loader.php15
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.