IGB Header support implemented

This commit is contained in:
exodus4d
2015-04-25 17:43:42 +02:00
parent fc033ed7c4
commit 2c688e2aa8
38 changed files with 1046 additions and 981 deletions

View File

@@ -16,11 +16,7 @@ class CharacterModel extends BasicModel {
protected $rel_ttl = 0;
protected $fieldConf = array(
/* wirft fehler
'characterId' => array(
'has-one' => array('Model\CharacterLogModel', 'characterId')
)
*/
);
/**
@@ -50,4 +46,20 @@ class CharacterModel extends BasicModel {
return $characterData;
}
/**
* get the character log entry for this character
* @return bool|null
*/
public function getLog(){
$characterLog = self::getNew('CharacterLogModel');
$characterLog->getByForeignKey('characterId', $this->characterId);
$characterLogReturn = false;
if(! $characterLog->dry() ){
$characterLogReturn = $characterLog;
}
return $characterLogReturn;
}
}