本文整理汇总了PHP中GenericPage::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP GenericPage::__construct方法的具体用法?PHP GenericPage::__construct怎么用?PHP GenericPage::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GenericPage
的用法示例。
在下文中一共展示了GenericPage::__construct方法的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'));
}
示例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);
}
示例3: __construct
public function __construct($pageCall, $id)
{
parent::__construct($pageCall, $id);
// temp locale
if ($this->mode == CACHE_TYPE_TOOLTIP && isset($_GET['domain'])) {
Util::powerUseLocale($_GET['domain']);
}
$this->typeId = intVal($id);
$this->subject = new SpellList(array(['id', $this->typeId]));
if ($this->subject->error) {
$this->notFound();
}
$jsg = $this->subject->getJSGlobals(GLOBALINFO_ANY, $extra);
$this->extendGlobalData($jsg, $extra);
$this->name = $this->subject->getField('name', true);
// has difficulty versions of itself
$this->difficulties = DB::Aowow()->selectRow('SELECT normal10 AS "0", normal25 AS "1",
heroic10 AS "2", heroic25 AS "3"
FROM ?_spelldifficulty
WHERE normal10 = ?d OR normal25 = ?d OR
heroic10 = ?d OR heroic25 = ?d', $this->typeId, $this->typeId, $this->typeId, $this->typeId);
// returns self or firstRank
$this->firstRank = DB::Aowow()->selectCell('SELECT IF(s1.RankNo <> 1 AND s2.id, s2.id, s1.id)
FROM ?_spell s1
LEFT JOIN ?_spell s2
ON s1.SpellFamilyId = s2.SpelLFamilyId AND s1.SpellFamilyFlags1 = s2.SpelLFamilyFlags1 AND
s1.SpellFamilyFlags2 = s2.SpellFamilyFlags2 AND s1.SpellFamilyFlags3 = s2.SpellFamilyFlags3 AND
s1.name_loc0 = s2.name_loc0 AND s2.RankNo = 1
WHERE s1.id = ?d', $this->typeId);
}
示例4: __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 : '';
}
示例5: __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 : '';
}
示例6: __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];
}
示例7: __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);
}
示例8: __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 : '';
}
示例9: __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);
}
示例10: __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'));
}
示例11: __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());
}
示例12: __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' => '', ',' => ''])));
}
示例13: __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');
}
示例14: __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));
}
示例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');
}