本文整理汇总了PHP中Game::fetchdets方法的典型用法代码示例。如果您正苦于以下问题:PHP Game::fetchdets方法的具体用法?PHP Game::fetchdets怎么用?PHP Game::fetchdets使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Game
的用法示例。
在下文中一共展示了Game::fetchdets方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Game
// along with this program. If not, see <http://www.gnu.org/licenses/>.
include 'php/session.php';
include 'php/checklogged.php';
include 'php/opendatabase.php';
include 'php/club.php';
include 'php/rank.php';
include 'php/player.php';
include 'php/team.php';
include 'php/teammemb.php';
include 'php/match.php';
include 'php/matchdate.php';
include 'php/game.php';
$g = new Game();
try {
$g->fromget();
$g->fetchdets();
} catch (GameException $e) {
$mess = $e->getMessage();
include 'php/wrongentry.php';
exit(0);
}
$g->delete_result();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<?php
$Title = "Game Result Delete";
include 'php/head.php';
?>
<body>
<script language="javascript" src="webfn.js"></script>
示例2: exit
$mess = $e->getMessage();
include 'php/wrongentry.php';
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;
示例3: Match
} else {
$dat = $tim = $cr;
}
if ($mid != 0) {
$mtch = new Match($mid);
try {
$mtch->fetchdets();
$mtch->fetchteams();
} catch (MatchException $e) {
$mid = 0;
}
}
if ($gid != 0) {
$gam = new Game($gid);
try {
$gam->fetchdets();
$gmtch = new Match($gam->Matchind);
$gmtch->fetchdets();
$gmtch->fetchteams();
} catch (GameException $e) {
$gid = 0;
} catch (MatchException $e) {
$gid = 0;
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<?php
$Title = "Display Message";
include 'php/head.php';
示例4: fetchgames
public function fetchgames()
{
$result = array();
if (!$this->Defaulted) {
$ret = mysql_query("select ind from game where {$this->queryof('match')} order by ind");
if (!$ret) {
throw new MatchException("Game read fail " . mysql_error());
}
try {
while ($row = mysql_fetch_array($ret)) {
$g = new Game($row[0], $this->Ind, $this->Division);
$g->fetchdets();
array_push($result, $g);
}
} catch (GameException $e) {
throw new MatchException($e->getMessage());
}
}
$this->Games = $result;
}