currently searchable are: - classes - races - titles - currencies - items - itemsets - achievements directly or as &opensearch &json is yet to come, yes that means ?compare cant find any items
50 lines
1.2 KiB
PHP
50 lines
1.2 KiB
PHP
<?php
|
|
|
|
if (!defined('AOWOW_REVISION'))
|
|
die('illegal access');
|
|
|
|
class CurrencyList extends BaseType
|
|
{
|
|
protected $setupQuery = 'SELECT *, Id AS ARRAY_KEY FROM ?_currencies WHERE [cond] ORDER BY Id ASC';
|
|
protected $matchQuery = 'SELECT COUNT(1) FROM ?_currencies WHERE [cond]';
|
|
|
|
public function getListviewData()
|
|
{
|
|
$data = [];
|
|
|
|
while ($this->iterate())
|
|
{
|
|
$data[$this->Id] = array(
|
|
'Id' => $this->Id,
|
|
'category' => $this->curTpl['category'],
|
|
'name' => $this->names[$this->Id],
|
|
'icon' => $this->curTpl['iconString']
|
|
);
|
|
}
|
|
|
|
return $data;
|
|
}
|
|
|
|
public function addGlobalsToJscript(&$refs)
|
|
{
|
|
if (!isset($refs['gCurrencies']))
|
|
$refs['gCurrencies'] = [];
|
|
|
|
$data = [];
|
|
|
|
while ($this->iterate())
|
|
{
|
|
$refs['gCurrencies'][$this->Id] = array(
|
|
'name_'.User::$localeString => Util::jsEscape($this->names[$this->Id]),
|
|
'icon' => $this->curTpl['iconString']
|
|
);
|
|
}
|
|
|
|
return $data;
|
|
}
|
|
|
|
public function addRewardsToJScript(&$ref) { }
|
|
public function renderTooltip() { }
|
|
}
|
|
|
|
?>
|