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


PHP RequestHandler::getActiveRequest方法代码示例

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


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

示例1: getRequest

 /**
  * Returns the active request object.
  *
  * @return	RequestHandler
  */
 public static final function getRequest()
 {
     return RequestHandler::getActiveRequest();
 }
开发者ID:joaocustodio,项目名称:EmuDevstore-1,代码行数:9,代码来源:WCF.class.php

示例2: viewFleet

 /**
  * Views a fleet without container etc.
  */
 public function viewFleet($ownFleet = false)
 {
     if (!count($this->fleet)) {
         return '';
     }
     $className = $this->getClassName($ownFleet);
     $shipStr = $this->getShipStr();
     $transport = $this->getRessources('string');
     if ($this->fleet_mess != 1) {
         $fpage = '<span class="flight ' . $className . '">';
     } else {
         $fpage = '<span class="return ' . $className . '">';
     }
     if ($this->fleet_owner == WCF::getUser()->userID && RequestHandler::getActiveRequest()->page != 'PhalanxPage') {
         $fpage .= 'Eine deiner ';
     } else {
         if (RequestHandler::getActiveRequest()->page != 'PhalanxPage') {
             $fpage .= 'Eine fremde ';
         } else {
             $fpage .= 'Eine ';
         }
     }
     #if(!empty($shipStr)) $fpage .= '<a href="#" onmouseover="this.T_WIDTH=150;return escape(\''.$shipStr.'\');" class="'.$className.'">';
     if (!empty($shipStr)) {
         $fpage .= '<a style="cursor:pointer" onmouseover="return overlib(\'<div id=jslayer>' . $shipStr . '</div>\', WIDTH, 150, MOUSEOFF, DELAY, 200);" onmouseout="return nd();">';
     }
     if ($this->fleet_owner == WCF::getUser()->userID && RequestHandler::getActiveRequest()->page != 'PhalanxPage') {
         $fpage .= 'Flotten';
     } else {
         $fpage .= 'Flotte';
     }
     if (!empty($shipStr)) {
         $fpage .= '</a> ';
     }
     $fpage .= ' vom ' . $this->getStartPlanet(false);
     if ($this->fleet_mess == 2) {
         $fpage .= ' beginnt den R&uuml;ckflug vom ';
     } else {
         if (!$this->fleet_mess) {
             $fpage .= ' erreicht den ';
         } else {
             $fpage .= ' kehrt vom ';
         }
     }
     if ($this->endPlanetID != 0) {
         $fpage .= $this->getEndPlanet(false);
     } else {
         $fpage .= ' unbewohnten Planeten [' . $this->fleet_end_galaxy . ':' . $this->fleet_end_system . ':' . $this->fleet_end_planet . ']';
     }
     if ($this->fleet_mess != 1) {
         $fpage .= '. Ihr Auftrag lautet: ';
     } else {
         $fpage .= ' zur&uuml;ck. Ihr Auftrag lautete: ';
     }
     if (!empty($transport)) {
         $fpage .= '<a style="cursor:pointer" onmouseover="return overlib(\'<div id=jslayer>Transport:' . $transport . '</div>\', WIDTH, 150, MOUSEOFF, DELAY, 200);this.T_WIDTH=150;" onmouseout="return nd();" class="' . $className . '">';
     }
     $fpage .= LWCore::$missionTypes[$this->fleet_mission];
     if (!empty($transport)) {
         $fpage .= '</a>';
     }
     $fpage .= '</span>';
     return $fpage;
 }
开发者ID:sonicmaster,项目名称:RPG,代码行数:67,代码来源:MissionEditor.class.php

示例3: viewFleet

 /**
  * Views a fleet without container etc.
  */
 public function viewFleet($ownFleet = false)
 {
     if (!count($this->fleet)) {
         return '';
     }
     $className = $this->getClassName($ownFleet);
     $shipStr = $this->getShipStr();
     $transport = $this->getRessources('string');
     if ($this->getCancelDuration()) {
         $fpage = '<span class="flight ' . $className . '">';
     } else {
         $fpage = '<span class="return ' . $className . '">';
     }
     if ($this->ownerID == WCF::getUser()->userID && RequestHandler::getActiveRequest()->page != 'PhalanxPage') {
         $fpage .= 'Eine deiner ';
     } else {
         if (RequestHandler::getActiveRequest()->page != 'PhalanxPage') {
             $fpage .= 'Eine fremde ';
         } else {
             $fpage .= 'Eine ';
         }
     }
     if (!empty($shipStr)) {
         $fpage .= '<a style="cursor:pointer" onmouseover="return overlib(\'<div id=jslayer>' . $shipStr . '</div>\', WIDTH, 150, MOUSEOFF, DELAY, 200);" onmouseout="return nd();">';
     }
     if ($this->ownerID == WCF::getUser()->userID && RequestHandler::getActiveRequest()->page != 'PhalanxPage') {
         $fpage .= 'Flotten';
     } else {
         $fpage .= 'Flotte';
     }
     if (!empty($shipStr)) {
         $fpage .= '</a> ';
     }
     $fpage .= ' vom ' . $this->getStartPlanet(false);
     if ($this->wakeUpTime && $this->wakeUpTime == $this->displayTime) {
         $fpage .= ' beginnt den R&uuml;ckflug vom ';
     } else {
         if ($this->getCancelDuration()) {
             $fpage .= ' erreicht den ';
         } else {
             $fpage .= ' kehrt vom ';
         }
     }
     if ($this->targetPlanetID != 0) {
         $fpage .= $this->getTargetPlanet(false);
     } else {
         $fpage .= ' unbewohnten Planeten [' . $this->galaxy . ':' . $this->system . ':' . $this->planet . ']';
     }
     if ($this->getCancelDuration()) {
         $fpage .= '. Ihr Auftrag lautet: ';
     } else {
         $fpage .= ' zur&uuml;ck. Ihr Auftrag lautete: ';
     }
     if (!empty($transport)) {
         $fpage .= '<a style="cursor:pointer" onmouseover="return overlib(\'<div id=jslayer>Transport:' . $transport . '</div>\', WIDTH, 150, MOUSEOFF, DELAY, 200);this.T_WIDTH=150;" onmouseout="return nd();" class="' . $className . '">';
     }
     $fpage .= WCF::getLanguage()->get('wot.mission.mission' . $this->data['missionID']);
     if (!empty($transport)) {
         $fpage .= '</a>';
     }
     $fpage .= '</span>';
     return $fpage;
 }
开发者ID:sonicmaster,项目名称:RPG,代码行数:66,代码来源:Fleet.class.php


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