Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
 public static function getGroups($options = array(), $limit = -1, $offset = 0)
 {
     return VBX_Group::search($options, $limit, $offset);
 }