any 'Id' => 'id' as i'm mighty tired of the conflicts between js (lower) and php (ucFirst)

added achievemnts-page to enable display of tooltips
This commit is contained in:
Sarjuuk
2013-03-05 23:21:19 +01:00
parent edd0ff5209
commit d848faa1fa
27 changed files with 643 additions and 236 deletions

View File

@@ -5,7 +5,7 @@ if (!defined('AOWOW_REVISION'))
class CharClassList extends BaseType
{
protected $setupQuery = 'SELECT *, Id AS ARRAY_KEY FROM ?_classes WHERE [cond] ORDER BY Id ASC';
protected $setupQuery = 'SELECT *, id AS ARRAY_KEY FROM ?_classes WHERE [cond] ORDER BY Id ASC';
protected $matchQuery = 'SELECT COUNT(1) FROM ?_classes WHERE [cond]';
public function getListviewData()
@@ -14,9 +14,9 @@ class CharClassList extends BaseType
while ($this->iterate())
{
$data[$this->Id] = array(
'Id' => $this->Id,
'name' => $this->names[$this->Id],
$data[$this->id] = array(
'id' => $this->id,
'name' => $this->names[$this->id],
'races' => $this->curTpl['raceMask'],
'roles' => $this->curTpl['roles'],
'weapon' => $this->curTpl['weaponTypeMask'],
@@ -25,10 +25,10 @@ class CharClassList extends BaseType
);
if ($this->curTpl['expansion'] == 2) // todo: grr, move to db
$data[$this->Id]['hero'] = 1;
$data[$this->id]['hero'] = 1;
if ($this->curTpl['expansion'])
$data[$this->Id]['expansion'] = $this->curTpl['expansion'];
$data[$this->id]['expansion'] = $this->curTpl['expansion'];
}
return $data;
@@ -40,7 +40,7 @@ class CharClassList extends BaseType
$refs['gClasses'] = [];
while ($this->iterate())
$refs['gClasses'][$this->Id] = Util::jsEscape($this->names[$this->Id]);
$refs['gClasses'][$this->id] = Util::jsEscape($this->names[$this->id]);
}
public function addRewardsToJScript(&$ref) { }