userData implementation

This commit is contained in:
exodus4d
2015-04-11 18:46:54 +02:00
parent 3b27517daa
commit 1be444cc32
54 changed files with 2628 additions and 1025 deletions

View File

@@ -19,11 +19,11 @@ class SystemSignatureModel extends BasicModel {
'systemId' => array(
'belongs-to-one' => 'Model\SystemModel'
),
'createdUserId' => array(
'belongs-to-one' => 'Model\UserModel'
'createdCharacterId' => array(
'belongs-to-one' => 'Model\CharacterModel'
),
'updatedUserId' => array(
'belongs-to-one' => 'Model\UserModel'
'updatedCharacterId' => array(
'belongs-to-one' => 'Model\CharacterModel'
)
);
@@ -63,11 +63,11 @@ class SystemSignatureModel extends BasicModel {
'typeId' => $this->typeId,
'name' => $this->name,
'created' => [
'userName' => is_object($this->createdUserId) ? $this->createdUserId->name : '',
'character' => $this->createdCharacterId->getData(),
'created' => strtotime($this->created)
],
'updated' => [
'userName' => is_object($this->updatedUserId) ? $this->updatedUserId->name : '',
'character' => $this->updatedCharacterId->getData(),
'updated' => strtotime($this->updated)
]