From b4f25747cbfbaf5dfde4781f2ad835ba39e6159a Mon Sep 17 00:00:00 2001 From: REJack Date: Wed, 13 Aug 2014 01:49:50 +0200 Subject: [PATCH] added list_system_var_keys --- application/libraries/Aauth.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/application/libraries/Aauth.php b/application/libraries/Aauth.php index b16eecba..43a2c63b 100644 --- a/application/libraries/Aauth.php +++ b/application/libraries/Aauth.php @@ -1888,6 +1888,22 @@ public function get_system_var( $key ){ return $row->value; } } + + /** + * List System Variable Keys + * Return array of variable keys or false + * @return bool|array , false if var is not set, the value of var if set + */ + + public function list_system_var_keys(){ + $query = $this->CI->db->select('key'); + $query = $this->CI->db->get( $this->config_vars['system_variables'] ); + // if variable not set + if ($query->num_rows() < 1) { return false;} + else { + return $query->result(); + } + } } // end class