Changeset 894 for trunk/Modules/Log/Log.php
- Timestamp:
- Jan 5, 2021, 10:30:31 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Log/Log.php
r888 r894 14 14 } 15 15 16 function DoInstall(): void16 function GetModels(): array 17 17 { 18 } 19 20 function DoUnInstall(): void 21 { 18 return array('Log'); 22 19 } 23 20 … … 41 38 'Channel' => 'log', 'Callback' => array($this, 'ShowRSS'), 42 39 'Permission' => array('Module' => 'Log', 'Operation' => 'RSS'))); 43 }44 45 function DoStop(): void46 {47 40 } 48 41 … … 107 100 } 108 101 } 102 103 class Log extends Model 104 { 105 static function GetDesc(): ModelDesc 106 { 107 $Desc = new ModelDesc(self::GetClassName()); 108 $Desc->AddDateTime('Time'); 109 $Desc->AddReference('User', User::GetClassName()); 110 $Desc->AddString('Module'); 111 $Desc->AddString('Operation'); 112 $Desc->AddText('Value'); 113 $Desc->AddString('IPAddress'); 114 return $Desc; 115 } 116 }
Note:
See TracChangeset
for help on using the changeset viewer.