Improve user management

This commit is contained in:
Eike Foken
2011-09-16 02:24:19 +02:00
parent 2b041d0384
commit dda117751c
6 changed files with 84 additions and 53 deletions

View File

@@ -40,8 +40,12 @@ class Group extends CI_Model {
*
* @return array
*/
public function get() {
return $this->db->get('groups')->result_array();
public function getAll() {
$groups = array();
foreach ($this->db->get('groups')->result_array() as $group) {
$groups[$group['id']] = $group['description'];
}
return $groups;
}
/**