當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。