Esempio n. 1
0
File: User.php Progetto: arbi/MyCode
 /**
  * @return array
  */
 public function prepareSearchFormResources()
 {
     /**
      * @var UserGroupDAO $userGroupsDao
      * @var UserDashboardsDAO $dashboardsDao
      */
     $userGroupsDao = $this->getServiceLocator()->get('dao_user_user_group');
     $dashboardsDao = $this->getServiceLocator()->get('dao_user_dashboards');
     $citiesDao = new UserManager($this->getServiceLocator(), '\\ArrayObject');
     $teamService = $this->getServiceLocator()->get('service_team_team');
     $permissions = $userGroupsDao->getGroupsList();
     $dashboards = $dashboardsDao->getDashboardsList();
     $cities = $citiesDao->getUsersCountries();
     $isDepartment = false;
     $teams = $teamService->getTeamList(null, $isDepartment);
     return ['user_groups' => $permissions, 'ud_dashboards' => $dashboards, 'cities' => $cities, 'teams' => $teams];
 }