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


PHP GenericPage類代碼示例

本文整理匯總了PHP中GenericPage的典型用法代碼示例。如果您正苦於以下問題:PHP GenericPage類的具體用法?PHP GenericPage怎麽用?PHP GenericPage使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了GenericPage類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 public function __construct($pageCall, $pageParam)
 {
     $this->filterObj = new ItemsetListFilter();
     $this->getCategoryFromUrl($pageParam);
     parent::__construct($pageCall, $pageParam);
     $this->name = Util::ucFirst(Lang::game('itemsets'));
 }
開發者ID:saqar,項目名稱:aowow,代碼行數:7,代碼來源:itemsets.php

示例2: __construct

 public function __construct($pageCall, $pageParam)
 {
     switch ($pageParam) {
         case 'screenshots':
             $this->reqUGroup = U_GROUP_STAFF | U_GROUP_SCREENSHOT;
             $this->generator = 'handleScreenshots';
             $this->tpl = 'admin/screenshots';
             array_push($this->path, 1, 5);
             $this->name = 'Screenshot Manager';
             break;
         case 'phpinfo':
             $this->reqUGroup = U_GROUP_ADMIN | U_GROUP_DEV;
             $this->generator = 'handlePhpInfo';
             $this->tpl = 'list-page-generic';
             array_push($this->path, 2, 21);
             $this->name = 'PHP Information';
             break;
         case 'siteconfig':
             $this->reqUGroup = U_GROUP_ADMIN | U_GROUP_DEV;
             $this->generator = 'handleConfig';
             $this->tpl = 'list-page-generic';
             array_push($this->path, 2, 18);
             $this->name = 'Site Configuration';
             break;
         default:
             // error out through unset template
     }
     parent::__construct($pageCall, $pageParam);
 }
開發者ID:Carbenium,項目名稱:aowow,代碼行數:29,代碼來源:admin.php

示例3: __construct

 public function __construct($pageCall, $pageParam)
 {
     $this->filterObj = new EnchantmentListFilter();
     $this->getCategoryFromUrl($pageParam);
     parent::__construct($pageCall, $pageParam);
     $this->name = Util::ucFirst(Lang::game('enchantments'));
     $this->subCat = $pageParam !== null ? '=' . $pageParam : '';
 }
開發者ID:TrinityCore,項目名稱:aowow,代碼行數:8,代碼來源:enchantments.php

示例4: __construct

 public function __construct($pageCall, $pageParam)
 {
     $this->filterObj = new CreatureListFilter();
     $this->getCategoryFromUrl($pageParam);
     parent::__construct($pageCall, $pageParam);
     $this->name = Util::ucFirst(Lang::game('npcs'));
     $this->subCat = $pageParam ? '=' . $pageParam : '';
 }
開發者ID:TrinityCore,項目名稱:aowow,代碼行數:8,代碼來源:npcs.php

示例5: __construct

 public function __construct($pageCall, $pageParam)
 {
     $this->filterObj = new SpellListFilter();
     $this->getCategoryFromUrl($pageParam);
     parent::__construct($pageCall, $pageParam);
     $this->name = Util::ucFirst(Lang::game('spells'));
     $this->subCat = $pageParam !== null ? '=' . $pageParam : '';
     $this->filter = ['classPanel' => false, 'glyphPanel' => false];
 }
開發者ID:TrinityCore,項目名稱:aowow,代碼行數:9,代碼來源:spells.php

示例6: __construct

 public function __construct($pageCall, $pageParam)
 {
     @(include 'datasets/ProfilerExampleChar');
     // tmp char data
     $this->character = $character;
     // soo ..
     // we require a list and filter-handler for profiles
     parent::__construct($pageCall, $pageParam);
 }
開發者ID:saqar,項目名稱:aowow,代碼行數:9,代碼來源:profiles.php

示例7: display

 public function display($override = '')
 {
     if ($this->rss) {
         header('Content-Type: application/rss+xml; charset=UTF-8');
         die($this->generateRSS());
     } else {
         return parent::display($override);
     }
 }
開發者ID:TrinityCore,項目名稱:aowow,代碼行數:9,代碼來源:utility.php

示例8: __construct

 public function __construct($pageCall, $id)
 {
     parent::__construct($pageCall, $id);
     $this->typeId = intVal($id);
     $this->subject = new CurrencyList(array(['id', $this->typeId]));
     if ($this->subject->error) {
         $this->notFound(Lang::game('currency'), Lang::currency('notFound'));
     }
     $this->name = $this->subject->getField('name', true);
 }
開發者ID:Carbenium,項目名稱:aowow,代碼行數:10,代碼來源:currency.php

示例9: __construct

 public function __construct($pageCall, $id)
 {
     parent::__construct($pageCall, $id);
     $this->typeId = intVal($id);
     $this->subject = new EmoteList(array(['id', $this->typeId]));
     if ($this->subject->error) {
         $this->notFound(Util::ucFirst(Lang::game('emote')), Lang::emote('notFound'));
     }
     $this->name = Util::ucFirst($this->subject->getField('cmd'));
 }
開發者ID:TrinityCore,項目名稱:aowow,代碼行數:10,代碼來源:emote.php

示例10: __construct

 public function __construct($pageCall, $pageParam)
 {
     $this->validCats = Util::$questClasses;
     // needs reviewing (not allowed to set this as default)
     $this->filterObj = new QuestListFilter();
     $this->getCategoryFromUrl($pageParam);
     parent::__construct($pageCall, $pageParam);
     $this->name = Util::ucFirst(Lang::game('quests'));
     $this->subCat = $pageParam ? '=' . $pageParam : '';
 }
開發者ID:Carbenium,項目名稱:aowow,代碼行數:10,代碼來源:quests.php

示例11: __construct

 public function __construct($pageCall, $id)
 {
     parent::__construct($pageCall, $id);
     $this->typeId = intVal($id);
     $this->subject = new EnchantmentList(array(['id', $this->typeId]));
     if ($this->subject->error) {
         $this->notFound(Util::ucFirst(Lang::game('enchantment')), Lang::enchantment('notFound'));
     }
     $this->extendGlobalData($this->subject->getJSGlobals());
     $this->name = Util::ucFirst($this->subject->getField('name', true));
 }
開發者ID:TrinityCore,項目名稱:aowow,代碼行數:11,代碼來源:enchantment.php

示例12: __construct

 public function __construct($pageCall, $id)
 {
     parent::__construct($pageCall, $id);
     $this->typeId = intVal($id);
     $this->subject = new SkillList(array(['id', $this->typeId]));
     if ($this->subject->error) {
         $this->notFound(Lang::game('skill'), Lang::skill('notFound'));
     }
     $this->name = $this->subject->getField('name', true);
     $this->cat = $this->subject->getField('typeCat');
 }
開發者ID:Carbenium,項目名稱:aowow,代碼行數:11,代碼來源:skill.php

示例13: __construct

 public function __construct($pageCall, $id)
 {
     parent::__construct($pageCall, $id);
     $this->typeId = intVal($id);
     $this->subject = new ItemsetList(array(['id', $this->typeId]));
     if ($this->subject->error) {
         $this->notFound(Lang::game('itemset'), Lang::itemset('notFound'));
     }
     $this->name = $this->subject->getField('name', true);
     $this->extendGlobalData($this->subject->getJSGlobals());
 }
開發者ID:Carbenium,項目名稱:aowow,代碼行數:11,代碼來源:itemset.php

示例14: __construct

 public function __construct($pageCall, $id)
 {
     parent::__construct($pageCall, $id);
     $this->typeId = intVal($id);
     $this->subject = new TitleList(array(['id', $this->typeId]));
     if ($this->subject->error) {
         $this->notFound(Lang::game('title'), Lang::title('notFound'));
     }
     $this->name = $this->subject->getHtmlizedName();
     $this->nameFixed = Util::ucFirst(trim(strtr($this->subject->getField('male', true), ['%s' => '', ',' => ''])));
 }
開發者ID:TrinityCore,項目名稱:aowow,代碼行數:11,代碼來源:title.php

示例15: __construct

 public function __construct($pageCall, $__)
 {
     parent::__construct($pageCall, $__);
     // prefer $_GET over $_COOKIE
     if (!empty($_GET['compare'])) {
         $this->compareString = $_GET['compare'];
     } else {
         if (!empty($_COOKIE['compare_groups'])) {
             $this->compareString = urldecode($_COOKIE['compare_groups']);
         }
     }
     $this->name = Lang::main('compareTool');
 }
開發者ID:saqar,項目名稱:aowow,代碼行數:13,代碼來源:compare.php


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