Example #1
0
 /**
  *
  * @param array $data
  * @return array 
  */
 public function getUsers($data)
 {
     $users = $data['users'];
     $mapperGroup = new Admin_Model_Mapper_Group();
     if (!empty($data['groups'])) {
         foreach ($data['groups'] as $group) {
             $usersGroup = $mapperGroup->listUserGroup($group);
             foreach ($usersGroup as $userGroup) {
                 $users[] = $userGroup->id_sysuser;
             }
         }
     }
     return array_unique($users);
 }
Example #2
0
 /**
  * 
  */
 public function listUserGroupAction()
 {
     $this->_helper->layout()->disableLayout();
     $this->_helper->viewRenderer->setRender('list-user');
     $this->view->rows = $this->_mapper->listUserGroup($this->_getParam('id'));
 }