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


PHP Server::getFromDB方法代码示例

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


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

示例1: moduleRelPath

     $waypointsWebPath = $moduleRelPath . "/" . $waypointsRelPath;
     $server->deleteAllSyncedFlights();
 } else {
     if ($action == 7) {
         // guess identical pilots
         $moduleRelPath = moduleRelPath(0);
         $waypointsWebPath = $moduleRelPath . "/" . $waypointsRelPath;
         $server->guessPilots();
     } else {
         if ($action == 8) {
             // delete pilots -> only use if you know what you are doing , must be sed only after delete flights
             $server->deleteAllSyncedPilots();
         } else {
             if ($action == 9) {
                 // move sync pointer back (in effect will reprocess last n log entries next time
                 $server->getFromDB();
                 echo "Sync Pointer was " . $server->lastPullUpdateID . "<BR>";
                 $server->moveSyncPointer($_GET['moveCounterBack'] + 0);
                 echo "Sync Pointer is " . $server->lastPullUpdateID . "<BR>";
             } else {
                 if ($action == 99) {
                     //test
                     echo $server->data['url_op'];
                     echo "<BR>{$action}<br>";
                     $pilotsList = $server->getPilots(3);
                     print_r($pilotsList);
                     //list($nearestWaypoint,$minTakeoffDistance)=$server->findTakeoff(49.4619,-8.67848);
                     //echo "wpt: ".$nearestWaypoint->intName. "~ $minTakeoffDistance<BR>";
                 }
             }
         }
开发者ID:Peter2121,项目名称:leonardoxc,代码行数:31,代码来源:EXT_perform_sync.php

示例2: registerServerToMaster

 function registerServerToMaster()
 {
     global $CONF_master_server_id;
     require_once dirname(__FILE__) . "/lib/xml_rpc/IXR_Library.inc.php";
     $masterServer = new Server($CONF_master_server_id);
     $masterServer->getFromDB();
     $masterServerURL = "http://" . $masterServer->data['url_op'];
     $thisServerURL = "http://" . $this->data['url_op'];
     $client = new IXR_Client($masterServerURL);
     if ($this->DEBUG) {
         $client->debug = true;
     }
     if (!$client->query('server.registerSlave', $this->data['site_pass'], $lat, $lon)) {
         echo 'registerSlave: Error ' . $client->getErrorCode() . " -> " . $client->getErrorMessage();
         return 0;
         // $client->getErrorCode();
     } else {
         $newServerID = $client->getResponse();
         return $newServerID;
     }
 }
开发者ID:Peter2121,项目名称:leonardoxc,代码行数:21,代码来源:CL_server.php


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