Changeset 899 for trunk/Modules/WebCam
- Timestamp:
- Feb 17, 2021, 12:30:23 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/WebCam/WebCam.php
r887 r899 48 48 } 49 49 50 class ModuleWebCam extends AppModule50 class ModuleWebCam extends Module 51 51 { 52 52 public string $ImageFileName = 'webcam.jpg'; … … 58 58 $this->Version = '1.0'; 59 59 $this->Creator = 'Chronos'; 60 $this->License = 'GNU/GPL ';60 $this->License = 'GNU/GPLv3'; 61 61 $this->Description = 'Web camera image presentetation'; 62 $this->Dependencies = array();63 $this->SupportedModels = array();64 62 } 65 63 … … 81 79 } 82 80 83 static function Cast( AppModule $AppModule): ModuleWebCam81 static function Cast(Module $Module): ModuleWebCam 84 82 { 85 if ($ AppModule instanceof ModuleWebCam)83 if ($Module instanceof ModuleWebCam) 86 84 { 87 return $ AppModule;85 return $Module; 88 86 } 89 throw new Exception('Expected ModuleWebCam type but got '.gettype($ AppModule));87 throw new Exception('Expected ModuleWebCam type but got '.gettype($Module)); 90 88 } 91 89 }
Note:
See TracChangeset
for help on using the changeset viewer.