Files
aowow/pages/classes.php
Sarjuuk 99760d7c72 Screenshots
* aproving a screenshot now flags the corresponding db entry as having a screenshot
 * deleting & moving screenshots works equivalent
 * instancing a new TypeClass without parameters no longer grabs everything from the corresponding tables ( pass a "[true]" to retain this behaviour)
 * retroactively flag db entries for having screenshots
 * fixed a typo
2017-02-23 16:30:58 +01:00

42 lines
1000 B
PHP

<?php
if (!defined('AOWOW_REVISION'))
die('illegal access');
// menuId 12: Class g_initPath()
// tabId 0: Database g_initHeader()
class ClassesPage extends GenericPage
{
use ListPage;
protected $type = TYPE_CLASS;
protected $tpl = 'list-page-generic';
protected $path = [0, 12];
protected $tabId = 0;
protected $mode = CACHE_TYPE_PAGE;
public function __construct($pageCall, $pageParam)
{
parent::__construct($pageCall, $pageParam);
$this->name = Util::ucFirst(Lang::game('classes'));
}
protected function generateContent()
{
$classes = new CharClassList([true]);
if (!$classes->error)
$this->lvTabs[] = ['class', ['data' => array_values($classes->getListviewData())]];
}
protected function generateTitle()
{
array_unshift($this->title, Util::ucFirst(Lang::game('classes')));
}
protected function generatePath() {}
}
?>