当前位置: 首页>>代码示例>>PHP>>正文


PHP Match::fetchdets方法代码示例

本文整理汇总了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)) {
开发者ID:Britgo,项目名称:Online-League,代码行数:31,代码来源:composemsg.php

示例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';
开发者ID:Britgo,项目名称:Online-League,代码行数:31,代码来源:closeseason.php

示例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()}");
     }
 }
开发者ID:Britgo,项目名称:Online-League,代码行数:14,代码来源:game.php


注:本文中的Match::fetchdets方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。