summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2011-12-26 19:42:34 +0100
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-12-26 19:42:34 +0100
commiteb7494ff6912f5a30f21ae1d7877c34bf72234e3 (patch)
tree9d1454c1536aea36ddef36e6621eff7a1f37f0bc /system
parent5b8c6058794e0b68916b69936ae30e03cf4a9b59 (diff)
parent81dd22393368862760e1cfb30a0d73d070cd38af (diff)
Merge pull request #680 from bubbafoley/load_get_vars
Added method get_vars() to CI_Loader.
Diffstat (limited to 'system')
-rw-r--r--system/core/Loader.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php
index 12d07bbe0..83d134ef4 100644
--- a/system/core/Loader.php
+++ b/system/core/Loader.php
@@ -495,6 +495,20 @@ class CI_Loader {
// --------------------------------------------------------------------
/**
+ * Get Variables
+ *
+ * Retrieve all loaded variables
+ *
+ * @return array
+ */
+ public function get_vars()
+ {
+ return $this->_ci_cached_vars;
+ }
+
+ // --------------------------------------------------------------------
+
+ /**
* Load Helper
*
* This function loads the specified helper file.