summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
authorShane Pearson <bubbafoley@gmail.com>2011-11-19 03:49:35 +0100
committerShane Pearson <bubbafoley@gmail.com>2011-11-19 03:49:35 +0100
commit81dd22393368862760e1cfb30a0d73d070cd38af (patch)
tree6f87256b16e832bacb68bbf736127212ee5ad81c /system/core
parentdd81c435c145792e79e17f5a51f5c036adbc8044 (diff)
add method get_vars() to CI_Loader to retrieve all variables loaded with $this->load->vars()
Diffstat (limited to 'system/core')
-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 4e14b54af..d42dbbf38 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.