1 | <?php |
||
22 | class V2FleetModel extends \Entity\KeyedModel { |
||
23 | protected $locationType = LOC_FLEET; |
||
24 | |||
25 | /** |
||
26 | * Return location type |
||
27 | * |
||
28 | * @param \Entity\EntityContainer $cEntity |
||
29 | * |
||
30 | * @return int |
||
31 | */ |
||
32 | public function getLocationType($cEntity) { |
||
35 | |||
36 | /** |
||
37 | * Return location ID |
||
38 | * |
||
39 | * @param \Entity\EntityContainer $cEntity |
||
40 | * |
||
41 | * @return mixed |
||
42 | */ |
||
43 | public function getLocationId($cEntity) { |
||
46 | |||
47 | |||
48 | /** |
||
49 | * Name of table for this entity |
||
50 | * |
||
51 | * @var string $tableName |
||
52 | */ |
||
53 | protected $tableName = 'fleets'; |
||
54 | /** |
||
55 | * Name of key field field in this table |
||
56 | * |
||
57 | * @var string $idFieldName |
||
58 | */ |
||
59 | protected $idFieldName = 'fleet_id'; |
||
60 | |||
61 | // protected $exceptionClass = 'Entity\EntityException'; |
||
62 | protected $entityContainerClass = 'V2Fleet\V2FleetContainer'; |
||
63 | |||
64 | // protected $properties = array( |
||
65 | // 'dbId' => array(P_DB_FIELD => 'fleet_id',), |
||
66 | // 'ownerId' => array(P_DB_FIELD => 'fleet_owner',), |
||
67 | // 'missionType' => array(P_DB_FIELD => 'fleet_mission'), |
||
68 | // |
||
69 | // 'fleet_amount' => array(P_DB_FIELD => 'fleet_amount'), |
||
70 | // 'fleet_start_planet_id' => array(P_DB_FIELD => 'fleet_start_planet_id'), |
||
71 | // |
||
72 | //// 'fleet_start_galaxy' => array(P_DB_FIELD => 'fleet_start_galaxy'), |
||
73 | //// 'fleet_start_system' => array(P_DB_FIELD => 'fleet_start_system'), |
||
74 | //// 'fleet_start_planet' => array(P_DB_FIELD => 'fleet_start_planet'), |
||
75 | //// 'fleet_start_type' => array(P_DB_FIELD => 'fleet_start_type'), |
||
76 | // |
||
77 | // 'fleet_end_planet_id' => array(P_DB_FIELD => 'fleet_end_planet_id'), |
||
78 | // 'fleet_target_owner' => array(P_DB_FIELD => 'fleet_target_owner'), |
||
79 | // |
||
80 | //// 'fleet_end_galaxy' => array(P_DB_FIELD => 'fleet_end_galaxy'), |
||
81 | //// 'fleet_end_system' => array(P_DB_FIELD => 'fleet_end_system'), |
||
82 | //// 'fleet_end_planet' => array(P_DB_FIELD => 'fleet_end_planet'), |
||
83 | //// 'fleet_end_type' => array(P_DB_FIELD => 'fleet_end_type'), |
||
84 | // |
||
85 | //// 'fleet_resource_metal' => array(P_DB_FIELD => 'fleet_resource_metal'), |
||
86 | //// 'fleet_resource_crystal' => array(P_DB_FIELD => 'fleet_resource_crystal'), |
||
87 | //// 'fleet_resource_deuterium' => array(P_DB_FIELD => 'fleet_resource_deuterium'), |
||
88 | // |
||
89 | // 'groupId' => array(P_DB_FIELD => 'fleet_group'), |
||
90 | // 'status' => array(P_DB_FIELD => 'fleet_mess'), |
||
91 | // |
||
92 | // 'vectorDeparture' => array(P_DB_FIELD => 'fleet_start_galaxy'), |
||
93 | // 'vectorArrive' => array(P_DB_FIELD => 'fleet_end_galaxy'), |
||
94 | // |
||
95 | // 'timeDeparture' => array(P_DB_FIELD => 'start_time'), |
||
96 | // 'timeArrive' => array(P_DB_FIELD => 'fleet_start_time'), |
||
97 | // 'timeComplete' => array(P_DB_FIELD => 'fleet_end_stay'), |
||
98 | // 'timeReturn' => array(P_DB_FIELD => 'fleet_end_time'), |
||
99 | // |
||
100 | // 'units' => array(), |
||
101 | // 'isReturning' => array(), |
||
102 | // ); |
||
103 | |||
104 | public function __construct(\Common\GlobalContainer $gc) { |
||
165 | |||
166 | public function importVector(V2FleetContainer $that, $propertyName, $fieldName) { |
||
175 | |||
176 | public function exportVector(V2FleetContainer $that, $propertyName, $fieldName) { |
||
183 | |||
184 | /** |
||
185 | * @param array $array |
||
186 | * |
||
187 | * @return V2FleetContainer |
||
188 | */ |
||
189 | public function fromArray($array) { |
||
210 | |||
211 | } |
||
212 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.