本文整理匯總了PHP中Team::getID方法的典型用法代碼示例。如果您正苦於以下問題:PHP Team::getID方法的具體用法?PHP Team::getID怎麽用?PHP Team::getID使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Team
的用法示例。
在下文中一共展示了Team::getID方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: setClueState
public function setClueState(Team $team, ClueState $state)
{
$id = $team->getID();
$this->clueStates[$id] = $state;
}
示例2: getMostRecent
public static function getMostRecent(Team $team)
{
return query(__CLASS__)->where(array('team' => $team->getID()))->sortDesc('time')->limit(1)->selectSingle();
}
示例3: team_summary
function team_summary($position, Team $team)
{
switch ($position) {
case POSITION_NONE:
return '';
case POSITION_ACCOUNT:
case POSITION_PLAYER:
return '<b>' . $team->getName() . '</b>';
case POSITION_ADMIN:
$name = '<b>' . $team->getName() . '</b>';
$id = $team->getID();
$locLink = $team->getLocationLink();
return <<<EOT
{$name}
<form method="POST" action="teams.php">
<input type="hidden" name="id" value="{$id}" />
<input type="text" name="text" size="12" />
<input type="submit" name="add" value="Add Member" />
<input type="submit" name="remove" value="Remove Member" />
<input type="submit" name="rename" value="Rename" />
<input type="submit" name="delete" value="Delete Team" />
</form>
{$locLink}
EOT;
}
}