Changeset 893 for trunk/Modules/TV/TV.php
- Timestamp:
- Jan 4, 2021, 9:55:40 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/TV/TV.php
r887 r893 112 112 } 113 113 114 function DoInstall(): void114 function GetModels(): array 115 115 { 116 } 117 118 function DoUninstall(): void 119 { 116 return array('TVGroup', 'TV'); 120 117 } 121 118 … … 165 162 )); 166 163 } 164 } 167 165 168 function DoStop(): void 166 class TVGroup extends Model 167 { 168 static function GetDesc(): ModelDesc 169 169 { 170 $Desc = new ModelDesc('TVGroup'); 171 $Desc->AddString('Name'); 172 return $Desc; 170 173 } 171 174 } 175 176 class TV extends Model 177 { 178 static function GetDesc(): ModelDesc 179 { 180 $Desc = new ModelDesc('TV'); 181 $Desc->AddString('Name'); 182 $Desc->AddInteger('Frequency'); 183 $Desc->AddString('Norm'); 184 $Desc->AddString('Homepage'); 185 $Desc->AddReference('Language', 'Language'); 186 $Desc->AddString('ShortName'); 187 $Desc->AddString('Stream'); 188 $Desc->AddString('StreamWeb'); 189 $Desc->AddString('SourceType'); 190 $Desc->AddReference('Category', 'TVGroup'); 191 return $Desc; 192 } 193 }
Note:
See TracChangeset
for help on using the changeset viewer.