/**
  * Gets the format to use for a team's short URLs
  *
  * @param SiteSettings
  * @return ShortUrlFormat
  */
 public static function GetShortUrlFormatForType(SiteSettings $settings)
 {
     return new ShortUrlFormat("nsa_team", 'short_url', array('team_id'), array('GetId'), array('{0}' => $settings->GetUrl('Team') . '{0}', '{0}/edit' => "/play/teams/teamedit.php?item={0}", '{0}/delete' => "/play/teams/teamdelete.php?item={0}", '{0}/matches/friendlies/add' => '/play/matches/matchadd.php?team={0}', '{0}/matches/league/add' => '/play/matches/matchadd.php?team={0}&type=' . MatchType::LEAGUE, '{0}/matches/cup/add' => '/play/matches/matchadd.php?team={0}&type=' . MatchType::CUP, '{0}/matches/practices/add' => '/play/matches/matchadd.php?team={0}&type=' . MatchType::PRACTICE, '{0}/matches/tournaments/add' => '/play/tournaments/add.php?team={0}', '{0}/matches/edit' => $settings->GetUrl('TeamResults'), '{0}/calendar' => $settings->GetUrl('TeamCalendar'), '{0}/statistics' => $settings->GetUrl('TeamStats'), '{0}/players' => '/play/teams/players.php?team={0}', '{0}/players/add' => $settings->GetUrl('PlayerAdd'), '{0}/statistics.json' => "/play/statistics/team.js.php?team={0}"));
 }
 /**
  * Gets the format to use for a competition's short URLs
  *
  * @param SiteSettings
  * @return ShortUrlFormat
  */
 public static function GetShortUrlFormatForType(SiteSettings $settings)
 {
     return new ShortUrlFormat($settings->GetTable('Competition'), 'short_url', array('competition_id'), array('GetId'), array('{0}' => $settings->GetUrl('Competition') . '{0}', '{0}/statistics' => '/play/statistics/summary-competition.php?competition={0}', '{0}/map' => "/play/competitions/map.php?competition={0}"));
 }
 /**
  * Gets the format to use for a season's short URLs
  *
  * @param SiteSettings
  * @return ShortUrlFormat
  */
 public static function GetShortUrlFormatForType(SiteSettings $settings)
 {
     return new ShortUrlFormat($settings->GetTable('Season'), 'short_url', array('season_id'), array('GetId'), array('{0}' => $settings->GetUrl('Season') . '{0}', '{0}/matches/friendlies/add' => '/play/matches/matchadd.php?season={0}', '{0}/matches/league/add' => '/play/matches/matchadd.php?season={0}&type=' . MatchType::LEAGUE, '{0}/matches/cup/add' => '/play/matches/matchadd.php?season={0}&type=' . MatchType::CUP, '{0}/matches/practices/add' => '/play/matches/matchadd.php?season={0}&type=' . MatchType::PRACTICE, '{0}/matches/tournaments/add' => "/play/tournaments/add.php?season={0}", '{0}/matches/edit' => $settings->GetUrl('SeasonResults'), '{0}/calendar' => $settings->GetUrl('SeasonCalendar'), '{0}/statistics' => '/play/statistics/summary-season.php?season={0}', '{0}/table' => '/play/competitions/table.php?season={0}', '{0}/map' => '/play/competitions/map.php?season={0}'));
 }
 /**
  * Gets the format to use for a team's short URLs
  *
  * @param SiteSettings
  * @return ShortUrlFormat
  */
 public static function GetShortUrlFormatForType(SiteSettings $settings)
 {
     return new ShortUrlFormat($settings->GetTable('Match'), 'short_url', array('match_id', 'match_type'), array('GetId', 'GetMatchType'), array('{0}' => '/play/matches/match.php?item={0}', '{0}/add/teams' => '/play/tournaments/teams.php?item={0}&action=add', '{0}/add/competitions' => '/play/tournaments/seasons.php?item={0}&action=add', '{0}/edit' => '/play/matches/matchedit.php?item={0}&type={1}', '{0}/edit/highlights' => '/play/matches/highlights.php?item={0}', '{0}/edit/scorecard' => '/play/matches/scorecard.php?item={0}', '{0}/edit/teams' => '/play/tournaments/teams.php?item={0}', '{0}/edit/competitions' => '/play/tournaments/seasons.php?item={0}', '{0}/delete' => '/play/matches/matchdelete.php?item={0}', '{0}/calendar' => $settings->GetUrl('MatchCalendar'), '{0}/matches/edit' => "/play/tournaments/matches.php?item={0}", '{0}/matches/results' => "/play/results.php?tournament={0}", '{0}/statistics' => "/play/statistics/summary-match.php?match={0}&type={1}", '{0}.json' => "/play/statistics/match.js.php?match={0}"));
 }
 /**
  * Gets the format to use for a ground's short URLs
  *
  * @param SiteSettings
  * @return ShortUrlFormat
  */
 public static function GetShortUrlFormatForType(SiteSettings $settings)
 {
     return new ShortUrlFormat($settings->GetTable('Ground'), 'short_url', array('ground_id'), array('GetId'), array('{0}' => '/play/grounds/ground.php?item={0}', '{0}/statistics' => $settings->GetUrl('GroundStatistics'), '{0}/edit' => '/play/grounds/groundedit.php?item={0}', '{0}/delete' => '/play/grounds/grounddelete.php?item={0}'));
 }