Changeset 899 for trunk/Modules/Customer/Customer.php
- Timestamp:
- Feb 17, 2021, 12:30:23 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Customer/Customer.php
r896 r899 1 1 <?php 2 2 3 class ModuleCustomer extends AppModule3 class ModuleCustomer extends Module 4 4 { 5 5 function __construct(System $System) … … 9 9 $this->Version = '1.0'; 10 10 $this->Creator = 'Chronos'; 11 $this->License = 'GNU/GPL ';11 $this->License = 'GNU/GPLv3'; 12 12 $this->Description = 'Customer management'; 13 $this->Dependencies = array('User', 'Finance'); 13 $this->Dependencies = array(ModuleUser::GetName(), ModuleFinance::GetName()); 14 $this->Models = array(Member::GetClassName(), MemberPayment::GetClassName(), SupportActivity::GetClassName(), ServiceCategory::GetClassName(), 15 Service::GetClassName(), ServiceCustomerRel::GetClassName(), UserCustomerRel::GetClassName()); 14 16 } 15 17 … … 199 201 } 200 202 201 function GetModels(): array202 {203 return array(Member::GetClassName(), MemberPayment::GetClassName(), SupportActivity::GetClassName(), ServiceCategory::GetClassName(),204 Service::GetClassName(), ServiceCustomerRel::GetClassName(), UserCustomerRel::GetClassName());205 }206 207 203 function ShowDashboardItem(): string 208 204 { … … 221 217 class Member extends Model 222 218 { 223 static function Get Desc(): ModelDesc219 static function GetModelDesc(): ModelDesc 224 220 { 225 221 $Desc = new ModelDesc(self::GetClassName()); … … 242 238 class MemberPayment extends Model 243 239 { 244 static function Get Desc(): ModelDesc240 static function GetModelDesc(): ModelDesc 245 241 { 246 242 $Desc = new ModelDesc(self::GetClassName()); … … 257 253 class Service extends Model 258 254 { 259 static function Get Desc(): ModelDesc255 static function GetModelDesc(): ModelDesc 260 256 { 261 257 $Desc = new ModelDesc(self::GetClassName()); … … 279 275 class ServiceCategory extends Model 280 276 { 281 static function Get Desc(): ModelDesc277 static function GetModelDesc(): ModelDesc 282 278 { 283 279 $Desc = new ModelDesc(self::GetClassName()); … … 289 285 class SupportActivity extends Model 290 286 { 291 static function Get Desc(): ModelDesc287 static function GetModelDesc(): ModelDesc 292 288 { 293 289 $Desc = new ModelDesc(self::GetClassName()); … … 302 298 class ServiceCustomerRel extends Model 303 299 { 304 static function Get Desc(): ModelDesc300 static function GetModelDesc(): ModelDesc 305 301 { 306 302 $Desc = new ModelDesc(self::GetClassName()); … … 315 311 class UserCustomerRel extends Model 316 312 { 317 static function Get Desc(): ModelDesc313 static function GetModelDesc(): ModelDesc 318 314 { 319 315 $Desc = new ModelDesc(self::GetClassName());
Note:
See TracChangeset
for help on using the changeset viewer.