Changeset 893 for trunk/Modules/Notify/Notify.php
- Timestamp:
- Jan 4, 2021, 9:55:40 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Notify/Notify.php
r891 r893 128 128 } 129 129 130 static function GetModels(): array 131 { 132 return array( 133 'NotifyCategory', 134 'NotifyUser', 135 ); 130 function GetModels(): array 131 { 132 return array('NotifyCategory', 'NotifyUser'); 136 133 } 137 134 138 135 function DoInstall(): void 139 136 { 140 foreach (self::GetModels() as $Model)141 {142 $this->InstallModel($Model::GetDesc());143 }144 145 137 $this->Database->query("INSERT INTO `NotifyCategory` (`Id`, `Name`, `SysName`) VALUES 146 138 (1, 'Dostupnost zařízení (ping)', 'NetworkReachability'), … … 152 144 } 153 145 154 function DoUninstall(): void155 {156 foreach (array_reverse(self::GetModels()) as $Model)157 {158 $this->UninstallModel($Model::GetDesc());159 }160 }161 162 146 function ShowLogRSS(): string 163 147 {
Note:
See TracChangeset
for help on using the changeset viewer.