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


PHP Server::addServer方法代码示例

本文整理汇总了PHP中Server::addServer方法的典型用法代码示例。如果您正苦于以下问题:PHP Server::addServer方法的具体用法?PHP Server::addServer怎么用?PHP Server::addServer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Server的用法示例。


在下文中一共展示了Server::addServer方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: ConversationRenameEvent

Match::enterMatch($olfm->getId(), $lweak->getId(), 0, 0, 20, $blast->getId(), "now", [], [], null, null, null, $toast->getId());
Match::enterMatch($fflood->getId(), $lweak->getId(), 1, 15, 20, $autoreport->getId(), "now", [], [], null, null, null, $six->getId());
Match::enterMatch($gsepar->getId(), $fradis->getId(), 8, 23, 30, $kierra->getId(), "now", [], [], null, null, null, $toast->getId());
Match::enterMatch($olfm->getId(), $lweak->getId(), 5, 4, 20, $kierra->getId());
Match::enterMatch($reptitles->getId(), $gsepar->getId(), 1, 1500, 20, $autoreport->getId(), "now", [], [], null, null, null, $monocati->getId());
Match::enterMatch($olfm->getId(), $lweak->getId(), 1, 1, 30, $autoreport->getId(), "now", [], [], null, null, null, $monocati->getId());
Match::enterMatch($fradis->getId(), $gsepar->getId(), 1, 2, 20, $kierra->getId(), "now", [], [], null, null, null, $monocati->getId());
echo " done!";
echo "\nUpdating teams...";
$reptitles->update("activity", 9000);
$fflood->update("activity", -18);
$fradis->update("activity", 3.141592653589793);
echo " done!";
echo "\nAdding servers...";
Server::addServer("Wingfights Fountains", "helit.tech", 5154, 151, $alezakos->getId());
Server::addServer("BZPro Public HiX Rabbit Chase", "bzpro.net", 5155, 227, $tw1sted->getId());
echo " done!";
echo "\nAdding messages...";
$conversation = Conversation::createConversation("New blog", $snake->getId(), $allPlayers);
for ($i = 0; $i <= 10; ++$i) {
    Conversation::createConversation("Extra test {$i}", $alezakos->getId(), $allPlayers)->sendMessage($allejo, "This is a test conversation");
}
$event = new ConversationRenameEvent($conversation, "New message", "New blorg", $snake);
ConversationEvent::storeEvent($conversation->getId(), $event, Events::CONVERSATION_RENAME);
$event = new ConversationRenameEvent($conversation, "New blorg", "New blog", $snake);
ConversationEvent::storeEvent($conversation->getId(), $event, Events::CONVERSATION_RENAME);
$conversation->sendMessage($snake, "Check out my new blog!");
$conversation = Conversation::createConversation("Serious discussion", $constitution->getId(), $allPlayers);
$conversation->sendMessage($ashvala, "hey");
$conversation->sendMessage($alezakos, "hm, what different machine learning some reason why I turned on the cloud version");
$conversation->sendMessage($allejo, "then I can type at 12,000 wpm?");
开发者ID:allejo,项目名称:bzion,代码行数:31,代码来源:sampleData.php

示例2: enter

 /**
  * {@inheritDoc}
  */
 public function enter($form)
 {
     return \Server::addServer($form->get('name')->getData(), $form->get('address')->getData(), 1, $form->get('owner')->getData()->getId());
 }
开发者ID:kleitz,项目名称:bzion,代码行数:7,代码来源:ServerFormCreator.php

示例3: enter

 /**
  * {@inheritdoc}
  */
 public function enter($form)
 {
     return \Server::addServer($form->get('name')->getData(), $form->get('domain')->getData(), $form->get('port')->getData(), $form->get('country')->getData()->getId(), $form->get('owner')->getData()->getId());
 }
开发者ID:blast007,项目名称:bzion,代码行数:7,代码来源:ServerFormCreator.php


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