Пример #1
0
 /**
  * Get the array of opponent swim club key and value pairs
  *
  * @return mixed - array of opponent swim club key value pairs
  */
 function SwimTeamSelections()
 {
     //  Swim Club options and labels, seed "None" as an
     //  option as some meet types don't have an opponent.
     $s = array(ucfirst(FT_NONE) => FT_NULL_ID);
     $swimteam = new SwimTeam();
     $swimteamIds = $swimteam->getAllSwimTeamIds();
     //  Make sure we have swim clubs to build a list of!
     if ($swimteamIds != null) {
         foreach ($swimteamIds as $swimteamId) {
             $swimteam->LoadSwimTeamById($swimteamId['swimteamid']);
             $team = $swimteam->getTeamName();
             $s[$team] = $swimteam->getSwimTeamId();
         }
     }
     return $s;
 }