ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
Css.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
namespace
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media
;
21
22
use
LogicException
;
23
28
class
Css
extends
AbstractMediaWithPath
29
{
30
public
const
MEDIA_ALL
=
"all"
;
31
public
const
MEDIA_SCREEN
=
"screen"
;
32
public
const
MEDIA_PRINT
=
"print"
;
33
public
const
MEDIA_SPEECH
=
"speech"
;
34
38
private
$media
= self::MEDIA_SCREEN;
39
45
public
function
__construct
(
string
$content
,
string
$version
,
string
$media
= self::MEDIA_SCREEN)
46
{
47
if
(!in_array(
$media
, [self::MEDIA_ALL, self::MEDIA_PRINT, self::MEDIA_SCREEN, self::MEDIA_SPEECH])) {
48
throw
new
LogicException
(
"Invalid media type for CSS"
);
49
}
50
parent::__construct
($content, $version);
51
$this->media =
$media
;
52
}
53
57
public
function
getMedia
() : string
58
{
59
return
$this->media
;
60
}
61
}
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\Css\$media
$media
Definition:
Css.php:38
LogicException
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\Css\__construct
__construct(string $content, string $version, string $media=self::MEDIA_SCREEN)
Css constructor.
Definition:
Css.php:45
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\Css\MEDIA_PRINT
const MEDIA_PRINT
Definition:
Css.php:32
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\AbstractMedia\$content
$content
Definition:
AbstractMedia.php:31
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\AbstractMediaWithPath
Class AbstractMediaWithPath.
Definition:
AbstractMediaWithPath.php:27
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\Css
Class Css.
Definition:
Css.php:28
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\Css\getMedia
getMedia()
Definition:
Css.php:57
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\AbstractMedia\$version
$version
Definition:
AbstractMedia.php:36
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\Css\MEDIA_SPEECH
const MEDIA_SPEECH
Definition:
Css.php:33
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\Css\MEDIA_ALL
const MEDIA_ALL
Definition:
Css.php:30
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:40
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media
Definition:
AbstractCollection.php:21
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\Css\MEDIA_SCREEN
const MEDIA_SCREEN
Definition:
Css.php:31
src
GlobalScreen
Scope
Layout
MetaContent
Media
Css.php
Generated on Mon Sep 1 2025 21:01:45 for ILIAS by
1.8.13 (using
Doxyfile
)