当前位置: 首页>>代码示例>>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;未经允许,请勿转载。