Changeset 894 for trunk/Modules/NetworkShare/NetworkShare.php
- Timestamp:
- Jan 5, 2021, 10:30:31 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkShare/NetworkShare.php
r887 r894 18 18 } 19 19 20 function DoInstall(): void20 function GetModels(): array 21 21 { 22 } 23 24 function DoUnInstall(): void 25 { 22 return array(NetworkShareItem::GetClassName(), NetworkShareError::GetClassName()); 26 23 } 27 24 … … 31 28 } 32 29 } 30 31 class NetworkShareItem extends Model 32 { 33 static function GetDesc(): ModelDesc 34 { 35 $Desc = new ModelDesc('NetworkShareItem'); 36 $Desc->AddString('Name'); 37 $Desc->AddReference('Parent', NetworkShareItem::GetClassName()); 38 $Desc->AddReference('Host', NetworkDevice::GetClassName()); 39 $Desc->AddBigInt('Size'); 40 $Desc->AddString('Ext'); 41 $Desc->AddDate('Date'); 42 $Desc->AddInteger('Type'); 43 return $Desc; 44 } 45 } 46 47 class NetworkShareError extends Model 48 { 49 static function GetDesc(): ModelDesc 50 { 51 $Desc = new ModelDesc(self::GetClassName()); 52 $Desc->AddString('Host'); 53 $Desc->AddString('Message'); 54 return $Desc; 55 } 56 }
Note:
See TracChangeset
for help on using the changeset viewer.