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

@@ -62,19 +62,19 @@ class TitleList extends BaseType
return $data;
}
public function addGlobalsToJScript($addMask = 0)
public function getJSGlobals($addMask = 0)
{
$data = [];
foreach ($this->iterate() as $__)
{
$data[$this->id]['name'] = $this->getField('male', true);
$data[TYPE_TITLE][$this->id]['name'] = $this->getField('male', true);
if ($_ = $this->getField('female', true))
$data[$this->id]['namefemale'] = $_;
$data[TYPE_TITLE][$this->id]['namefemale'] = $_;
}
Util::$pageTemplate->extendGlobalData(self::$type, $data);
return $data;
}
private function createSource()