本文整理汇总了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();
}
示例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ü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ü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;
}
示例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ü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ü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;
}