本文整理汇总了PHP中Lang::gameObject方法的典型用法代码示例。如果您正苦于以下问题:PHP Lang::gameObject方法的具体用法?PHP Lang::gameObject怎么用?PHP Lang::gameObject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Lang
的用法示例。
在下文中一共展示了Lang::gameObject方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: generateTitle
protected function generateTitle()
{
array_unshift($this->title, $this->name);
if ($this->category) {
array_unshift($this->title, Lang::gameObject('cat', $this->category[0]));
}
}
示例2: renderTooltip
public function renderTooltip($interactive = false)
{
if (!$this->curTpl) {
return array();
}
$x = '<table>';
$x .= '<tr><td><b class="q">' . $this->getField('name', true) . '</b></td></tr>';
if ($_ = Lang::gameObject('type', $this->curTpl['typeCat'])) {
$x .= '<tr><td>' . $_ . '</td></tr>';
}
if (isset($this->curTpl['lockId'])) {
if ($locks = Lang::getLocks($this->curTpl['lockId'])) {
foreach ($locks as $l) {
$x .= '<tr><td>' . $l . '</td></tr>';
}
}
}
$x .= '</table>';
return $x;
}
示例3: notFound
public function notFound()
{
if ($this->mode != CACHE_TYPE_TOOLTIP) {
return parent::notFound(Lang::game('gameObject'), Lang::gameObject('notFound'));
}
header('Content-type: application/x-javascript; charset=utf-8');
echo $this->generateTooltip(true);
exit;
}
示例4:
<div class="text">
<?php
$this->brick('redButtons');
?>
<h1><?php
echo $this->name;
?>
</h1>
<?php
$this->brick('article');
if (!empty($this->map)) {
$this->brick('mapper');
} else {
echo Lang::gameObject('unkPosition');
}
$this->brick('book');
?>
<h2 class="clear"><?php
echo Lang::main('related');
?>
</h2>
</div>
<?php
$this->brick('lvTabs', ['relTabs' => true]);
$this->brick('contribute');
?>
示例5: elseif
<?php
if (isset($this->map) && empty($this->map)) {
echo Lang::zone('noMap');
} elseif (!empty($this->map['data'])) {
if ($this->type != TYPE_ZONE) {
echo ' <div>' . ($this->type == TYPE_OBJECT ? Lang::gameObject('foundIn') : Lang::npc('foundIn')) . ' <span id="locations">';
$n = count($this->map['mapperData']);
$i = 0;
foreach ($this->map['mapperData'] as $areaId => $areaData) {
if ($n > 1 && $i++ > 0) {
echo $i < $n ? ', ' : Lang::main('and');
}
echo '<a href="javascript:;" onclick="myMapper.update({zone: ' . $areaId . '}); g_setSelectedLink(this, \'mapper\'); return false" onmousedown="return false">' . $this->map['extra'][$areaId] . '</a> (' . reset($areaData)['count'] . ')';
}
echo ".</span></div>\n";
}
if (!empty($this->map['data']['zone']) && $this->map['data']['zone'] < 0) {
?>
<div id="mapper" style="width: 778px; margin: 0 auto">
<?php
if (isset($this->map['som'])) {
?>
<div id="som-generic"></div>
<?php
}
?>
<div id="mapper-generic"></div>
<div class="pad clear"></div>
</div>
<?php