當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Team::createTeam方法代碼示例

本文整理匯總了PHP中Team::createTeam方法的典型用法代碼示例。如果您正苦於以下問題:PHP Team::createTeam方法的具體用法?PHP Team::createTeam怎麽用?PHP Team::createTeam使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Team的用法示例。


在下文中一共展示了Team::createTeam方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: setUp

 protected function setUp()
 {
     $this->connectToDatabase();
     $this->player_a = $this->getNewPlayer();
     $this->player_b = $this->getNewPlayer();
     $this->team_a = Team::createTeam("Team A", $this->player_a->getId(), "", "");
     $this->team_b = Team::createTeam("Team B", $this->player_b->getId(), "", "");
 }
開發者ID:blast007,項目名稱:bzion,代碼行數:8,代碼來源:MatchTest.php

示例2:

echo " done!";
echo "\nAdding deleted objects...";
Team::createTeam("Amphibians", $snake->getId(), "", "")->delete();
$snake->refresh();
Team::createTeam("Serpents", $snake->getId(), "", "")->delete();
$snake->refresh();
Page::addPage("Test", "<p>This is a deleted page</p>", $tw1sted->getId())->delete();
echo " done!";
echo "\nAdding teams...";
$olfm = Team::createTeam("OpenLeague FM?", $kierra->getId(), "", "");
$reptitles = Team::createTeam("Reptitles", $snake->getId(), "", "", "open");
$fflood = Team::createTeam("Formal Flood", $allejo->getId(), "", "");
$lweak = Team::createTeam("[LakeWeakness]", $mdskpr->getId(), "", "");
$gsepar = Team::createTeam("Good Separation", $tw1sted->getId(), "", "");
$gsepar->changeElo('100');
$fradis = Team::createTeam("Fractious disinclination", $ashvala->getId(), "", "");
echo " done!";
echo "\nAdding members to teams...";
$lweak->addMember($autoreport->getId());
$fflood->addMember($blast->getId());
$fradis->addMember($alezakos->getId());
$reptitles->addMember($brad->getId());
$fradis->addMember($themap->getId());
echo " done!";
echo "\nAdding maps...";
$six = Map::addMap("Six", "six", "six is the best map ever");
$monocati = Map::addMap("Monocati", "monocati", "a single map");
$toast = Map::addMap("Toast", null, <<<TOAST
Toast is a very old map with **deterministic** outcome. A *true* map for *true* masters.

#### Choice
開發者ID:allejo,項目名稱:bzion,代碼行數:31,代碼來源:sampleData.php

示例3: enter

 /**
  * {@inheritDoc}
  */
 public function enter($form)
 {
     return \Team::createTeam($form->get('name')->getData(), $this->me->getId(), '', $form->get('description')->getData(), $form->get('status')->getData())->setAvatarFile($form->get('avatar')->getData());
 }
開發者ID:kleitz,項目名稱:bzion,代碼行數:7,代碼來源:TeamFormCreator.php

示例4: iCreateATeamCalled

 /**
  * @Given I create a team called :name
  */
 public function iCreateATeamCalled($name)
 {
     Team::createTeam($name, $this->me->getId(), $this->avatarUrl, "Description");
 }
開發者ID:allejo,項目名稱:bzion,代碼行數:7,代碼來源:FeatureContext.php

示例5: testMiscMethods

 public function testMiscMethods()
 {
     $this->team = Team::createTeam("Sample Team", $this->player->getId(), "Avatar", "Description");
     $team = Team::get($this->team->getId());
     $this->assertEquals("now", $team->getCreationDate());
 }
開發者ID:bchhun,項目名稱:bzion,代碼行數:6,代碼來源:TeamTest.php

示例6: Team

<?php 
include_once 'header.php';
?>
</div>
<div id="sidebaar">
<?php 
include_once 'sidebar.php';
?>
</div>
<div id="content">
<?php 
$type = $_GET['type'];
$t = new Team();
if (isset($_POST['submit'])) {
    if ($type == "ce") {
        echo $t->createTeam($_POST['delNo']);
    } else {
        if ($type == "se") {
            $res = $t->getMembers($_POST['teamNo']);
            echo "<table border='1'>\n\t\t\t\t  <tr>\n\t\t\t\t\t  <td>Del No </td>\n\t\t\t\t  </tr>\n\t\t\t\n\t\t\t  ";
            foreach ($res as $r) {
                echo "<tr><td>" . $r . "</td></tr>";
            }
        } else {
            if ($type == "ae") {
                echo $t->addToTeam($_POST['delNo'], $_POST['teamNo']);
            }
        }
    }
} else {
    if ($type == "ce") {
開發者ID:kar2905,項目名稱:regwiz,代碼行數:31,代碼來源:team.php


注:本文中的Team::createTeam方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。