本文整理汇总了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(), "", "");
}
示例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
示例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());
}
示例4: iCreateATeamCalled
/**
* @Given I create a team called :name
*/
public function iCreateATeamCalled($name)
{
Team::createTeam($name, $this->me->getId(), $this->avatarUrl, "Description");
}
示例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());
}
示例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") {