本文整理汇总了PHP中Match::fetchdets方法的典型用法代码示例。如果您正苦于以下问题:PHP Match::fetchdets方法的具体用法?PHP Match::fetchdets怎么用?PHP Match::fetchdets使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Match
的用法示例。
在下文中一共展示了Match::fetchdets方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: exit
exit(0);
}
$hteam = $match->Hteam;
$ateam = $match->Ateam;
$recip = $hteam->Captain;
if ($recip->is_same($player)) {
$recip = $ateam->Captain;
}
$subj = htmlspecialchars("Match: {$hteam->display_name()} -v- {$ateam->display_name()}");
} else {
// About game, recipient isn't me
try {
$game = new Game($gid);
$game->fetchdets();
$match = new Match($game->Matchind);
$match->fetchdets();
$match->fetchteams();
// Prefer to get from match although should be the same
} catch (GameException $e) {
$mess = $e->getMessage();
include 'php/wrongentry.php';
exit(0);
} catch (MatchException $e) {
$mess = $e->getMessage();
include 'php/wrongentry.php';
exit(0);
}
$hteam = $match->Hteam;
$ateam = $match->Ateam;
$recip = $game->Wplayer;
if ($recip->is_same($player)) {
示例2: count
$mtch->fetchteams();
$mtch->delmatch();
}
$unplayed_matches = count($inds);
}
// Mark unfinished games as drawn
$ret = mysql_query("select ind from lgmatch where result='P'");
if ($ret) {
$inds = array();
while ($row = mysql_fetch_array($ret)) {
array_push($inds, $row[0]);
}
$today = new Matchdate();
foreach ($inds as $ind) {
$mtch = new Match($ind);
$mtch->fetchdets();
$mtch->fetchteams();
$mtch->fetchgames();
foreach ($mtch->Games as $g) {
if ($g->Result == 'N') {
$g->set_result('J', 'Jigo');
$g->reset_date($today);
$setdrawn_games++;
}
}
}
}
// Create news item if we actually did anything
$matchmsg = "{$unplayed_matches} match";
if ($unplayed_matches != 1) {
$matchmsg .= 'es';
示例3: delete_result
public function delete_result()
{
if ($this->League == 'I') {
mysql_query("delete from game where {$this->queryof()}");
} else {
$mtch = new Match($this->Matchind);
$mtch->fetchdets();
$this->adj_match($mtch, -1);
$this->Result = 'N';
$this->Resultdet = '';
$mtch->updscore();
mysql_query("update game set result='N',reshow='',sgf='' where {$this->queryof()}");
}
}