Title = 'Kamera';
$this->Description = 'Webová kamera';
$this->ParentClass = 'PagePortal';
}
function Show(): string
{
if (file_exists(ModuleWebCam::Cast($this->System->GetModule('WebCam'))->ImageFileName))
{
$Output = '';
$Output .= '
';
$Output .= '
';
$Output .= '
';
$Output .= '
';
$Output .= '
';
return $Output;
}
static function Cast(Module $Module): ModuleWebCam
{
if ($Module instanceof ModuleWebCam)
{
return $Module;
}
throw new Exception('Expected ModuleWebCam type but got '.gettype($Module));
}
}