當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Lang::gameObject方法代碼示例

本文整理匯總了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]));
     }
 }
開發者ID:TrinityCore,項目名稱:aowow,代碼行數:7,代碼來源:objects.php

示例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;
 }
開發者ID:Carbenium,項目名稱:aowow,代碼行數:20,代碼來源:gameobject.class.php

示例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;
 }
開發者ID:Carbenium,項目名稱:aowow,代碼行數:9,代碼來源:object.php

示例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');
?>
開發者ID:Niknox,項目名稱:aowow,代碼行數:30,代碼來源:object.tpl.php

示例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>&nbsp;(' . 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 
開發者ID:saqar,項目名稱:aowow,代碼行數:31,代碼來源:mapper.tpl.php


注:本文中的Lang::gameObject方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。