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


PHP Team::fetchdets方法代码示例

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

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

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


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