Skip to content

Commit

Permalink
added list_system_var_keys
Browse files Browse the repository at this point in the history
  • Loading branch information
REJack committed Aug 12, 2014
1 parent d255234 commit b4f2574
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions application/libraries/Aauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b4f2574

Please sign in to comment.