aowow/pages/races.php
Sarjuuk 71e44e572a Misc/Misc
* fixed auth against TCs auth table
 * check for real paths when creating emote aliasses
 * races page no longer identifies as classes
 * fixed item comparison tool
 * fixed js error when trying to display spawn maps
2016-02-27 23:23:37 +01:00

46 lines
1.1 KiB
PHP

<?php
if (!defined('AOWOW_REVISION'))
die('illegal access');
// menuId 13: Race g_initPath()
// tabId 0: Database g_initHeader()
class RacesPage extends GenericPage
{
use ListPage;
protected $type = TYPE_RACE;
protected $tpl = 'list-page-generic';
protected $path = [0, 13];
protected $tabId = 0;
protected $mode = CACHE_TYPE_PAGE;
public function __construct($pageCall, $pageParam)
{
parent::__construct($pageCall, $pageParam);
$this->name = Util::ucFirst(Lang::game('races'));
}
protected function generateContent()
{
$conditions = [];
if (!User::isInGroup(U_GROUP_EMPLOYEE))
$conditions[] = [['cuFlags', CUSTOM_EXCLUDE_FOR_LISTVIEW, '&'], 0];
$races = new CharRaceList($conditions);
if (!$races->error)
$this->lvTabs[] = ['race', ['data' => array_values($races->getListviewData())]];
}
protected function generateTitle()
{
array_unshift($this->title, Util::ucFirst(Lang::game('races')));
}
protected function generatePath() {}
}
?>