Example #1
0
 public function getLeagues()
 {
     $leaguesList = new LeaguesList();
     $leagues = $leaguesList->get();
     foreach ($leagues as $league) {
         $leaguesDropDownArray[$league->id] = $league->name;
     }
     return $leaguesDropDownArray;
 }
Example #2
0
 /**
  * @return array
  */
 private function getLeagues()
 {
     Loader::model('leagues_list', 'leagues_list');
     $leagues = new LeaguesList();
     if ($_REQUEST['cmpKeywords']) {
         $leagues->filterByLeague($_REQUEST['cmpKeywords']);
     }
     return $leagues->get();
 }
Example #3
0
 public function getLeagues()
 {
     Loader::model('leagues_list', 'leagues_list');
     $leaguesList = new LeaguesList();
     $leagues = $leaguesList->get();
     foreach ($leagues as $league) {
         $leaguesDropDownArray[$league->getId()] = $league->getName();
     }
     return $leaguesDropDownArray;
 }