本文整理汇总了PHP中Team::fetchdets方法的典型用法代码示例。如果您正苦于以下问题:PHP Team::fetchdets方法的具体用法?PHP Team::fetchdets怎么用?PHP Team::fetchdets使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Team
的用法示例。
在下文中一共展示了Team::fetchdets方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: exit
include 'php/wrongentry.php';
exit(0);
}
$team = new Team($teamname);
checkname($team);
$team->Description = $teamdescr;
$team->Division = $teamdiv;
$team->Captain = new Player($captfirst, $captlast);
$team->create();
$Title = "Team {$team->display_name()} created OK";
break;
default:
try {
$origteam = new Team();
$origteam->frompost();
$origteam->fetchdets();
} catch (TeamException $e) {
$mess = $e->getMessage();
include 'php/wrongentry.php';
exit(0);
}
// Check name changes
$newteam = new Team($teamname);
if (!$origteam->is_same($newteam)) {
checkname($newteam);
$origteam->updatename($newteam);
}
$origteam->Description = $teamdescr;
$origteam->Division = $teamdiv;
$origteam->Captain = new Player($captfirst, $captlast);
$origteam->update();
示例2: exit
include 'php/wrongentry.php';
exit(0);
case 'T':
$type = 'T';
$teamname = $row["descr1"];
break;
case 'I':
$type = 'I';
$first = $row["descr1"];
$last = $row["descr2"];
break;
}
try {
if ($type == 'T') {
$team = new Team($teamname);
$team->fetchdets();
// Error if this team has paid
if ($team->Paid) {
$mess = "Team {$teamname} have already paid??";
include 'php/wrongentry.php';
exit(0);
}
} else {
$pplayer = new Player($first, $last);
$pplayer->fetchdets();
// Error if this player has paid
if ($pplayer->ILpaid) {
$mess = "{$first} {$last} is already paid??";
include 'php/wrongentry.php';
exit(0);
}
示例3: list_teams_captof
function list_teams_captof($player)
{
$result = array();
$ret = mysql_query("select name from team where {$player->queryof('capt')} order by name");
if ($ret and mysql_num_rows($ret) > 0) {
while ($row = mysql_fetch_array($ret)) {
$team = new Team($row[0]);
$team->fetchdets();
array_push($result, $team);
}
}
return $result;
}