function usergroup() { $data = array(); $users = VBX_User::search(array('is_active' => 1)); $groups = VBX_Group::search(array('is_active' => 1)); $data['users_and_groups'] = array_merge($users, $groups); usort($data['users_and_groups'], "sortUsersAndGroupsByNameComparator"); $this->respond('', 'dialog/usergroup', $data); }
public function index() { $this->template->add_js('assets/j/accounts.js'); $data = $this->init_view_data(); $users = VBX_User::search(array('is_active' => 1)); $data['users'] = $users; $groups = VBX_Group::search(array('is_active' => 1)); if (!empty($groups)) { $data['groups'] = $groups; } $this->respond('', 'accounts', $data); }
public function index() { $this->template->add_js('assets/j/accounts.js'); $data = $this->init_view_data(); $users = VBX_User::search(array('is_active' => 1)); $data['users'] = $this->sort_users_by_lname($users); $groups = VBX_Group::search(array('is_active' => 1)); if (!empty($groups)) { $data['groups'] = $groups; } $data['gravatars'] = $this->vbx_settings->get('gravatars', $this->tenant->id); $this->respond('', 'accounts', $data); }
public static function getGroups($options = array(), $limit = -1, $offset = 0) { return VBX_Group::search($options, $limit, $offset); }