Browse Source

added list_system_var_keys

develop
REJack 11 years ago
parent
commit
b4f25747cb
  1. 16
      application/libraries/Aauth.php

16
application/libraries/Aauth.php

@ -1889,6 +1889,22 @@ class Aauth {
}
}
/**
* 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
// $this->CI->session->userdata('id')

Loading…
Cancel
Save