forked from exodus4d/pathfinder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcharacterlogmodel.php
More file actions
42 lines (31 loc) · 824 Bytes
/
Copy pathcharacterlogmodel.php
File metadata and controls
42 lines (31 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* Created by PhpStorm.
* User: exodus4d
* Date: 30.03.15
* Time: 00:04
*/
namespace Model;
class CharacterLogModel extends BasicModel {
protected $table = 'character_log';
protected $fieldConf = [
'characterId' => [
'belongs-to-one' => 'Model\CharacterModel'
]
];
/**
* get all character log data
* @return object
*/
public function getData(){
$logData = (object) [];
$logData->system = (object) [];
$logData->system->id = $this->systemId;
$logData->system->name = $this->systemName;
$logData->ship = (object) [];
$logData->ship->id = $this->shipId;
$logData->ship->name = $this->shipName;
$logData->ship->typeName = $this->shipTypeName;
return $logData;
}
}