本文整理汇总了PHP中Club::GetShortUrlFormatForType方法的典型用法代码示例。如果您正苦于以下问题:PHP Club::GetShortUrlFormatForType方法的具体用法?PHP Club::GetShortUrlFormatForType怎么用?PHP Club::GetShortUrlFormatForType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Club
的用法示例。
在下文中一共展示了Club::GetShortUrlFormatForType方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: GetShortUrlFormats
/**
* 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;
}
示例2: GetShortUrlFormat
/**
* Gets the format to use for a club's short URLs
*
* @return ShortUrlFormat
*/
public function GetShortUrlFormat()
{
return Club::GetShortUrlFormatForType($this->o_settings);
}