/** * Gets the short URL formats for the site * * @return ShortUrlFormat[] */ public function GetShortUrlFormats() { require_once 'http/short-url-format.class.php'; $a_formats = array(); require_once 'stoolball/clubs/club.class.php'; $a_formats[] = Club::GetShortUrlFormatForType($this); require_once 'stoolball/competition.class.php'; $a_formats[] = Competition::GetShortUrlFormatForType($this); require_once 'stoolball/ground.class.php'; $a_formats[] = Ground::GetShortUrlFormatForType($this); require_once 'stoolball/match.class.php'; $a_formats[] = Match::GetShortUrlFormatForType($this); require_once 'stoolball/season.class.php'; $a_formats[] = Season::GetShortUrlFormatForType($this); require_once 'stoolball/team.class.php'; $a_formats[] = Team::GetShortUrlFormatForType($this); require_once 'stoolball/player.class.php'; $a_formats[] = Player::GetShortUrlFormatForType($this); return $a_formats; }
/** * Gets the format to use for a ground's short URLs * * @return ShortUrlFormat */ public function GetShortUrlFormat() { return Ground::GetShortUrlFormatForType($this->o_settings); }