removing smarty - part II

- adapting classes to change
- adding new class GenericPage
This commit is contained in:
Sarjuuk
2014-06-15 21:55:40 +02:00
parent b7a73baaea
commit 3347778e4c
99 changed files with 828 additions and 10363 deletions

View File

@@ -120,10 +120,14 @@ class GameObjectList extends BaseType
return $this->tooltips[$this->id];
}
public function addGlobalsToJScript($addMask = 0)
public function getJSGlobals($addMask = 0)
{
foreach ($this->iterate() as $id => $__)
Util::$pageTemplate->extendGlobalData(self::$type, [$id => ['name' => $this->getField('name', true)]]);
$data = [];
foreach ($this->iterate() as $__)
$data[TYPE_OBJECT][$this->id] = ['name' => $this->getField('name', true)];
return $data;
}
}