ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
CssCollection.php
Go to the documentation of this file.
1
<?php
namespace
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media
;
2
3
/******************************************************************************
4
*
5
* This file is part of ILIAS, a powerful learning management system.
6
*
7
* ILIAS is licensed with the GPL-3.0, you should have received a copy
8
* of said license along with the source code.
9
*
10
* If this is not the case or you just want to try ILIAS, you'll find
11
* us at:
12
* https://www.ilias.de
13
* https://github.com/ILIAS-eLearning
14
*
15
*****************************************************************************/
21
class
CssCollection
extends
AbstractCollection
22
{
23
27
public
function
addItem
(
Css
$item)
28
{
29
$real_path = realpath(parse_url($item->
getContent
(), PHP_URL_PATH));
30
foreach
($this->
getItems
() as
$css
) {
31
if
(realpath(parse_url($css->getContent(), PHP_URL_PATH)) === $real_path) {
32
return
;
33
}
34
}
35
$this->items[] = $item;
36
}
37
38
42
public
function
getItemsInOrderOfDelivery
() : array
43
{
44
return
parent::getItemsInOrderOfDelivery();
45
}
46
}
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\Css
Class Css.
Definition:
Css.php:20
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\AbstractMediaWithPath\getContent
getContent()
Definition:
AbstractMediaWithPath.php:9
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\AbstractCollection
Class Js.
Definition:
AbstractCollection.php:23
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\CssCollection\addItem
addItem(Css $item)
Definition:
CssCollection.php:27
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\CssCollection\getItemsInOrderOfDelivery
getItemsInOrderOfDelivery()
Definition:
CssCollection.php:42
ILIAS\GlobalScreen\Scope\Layout\MetaContent\MetaContent\$css
$css
Definition:
MetaContent.php:39
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\AbstractCollection\getItems
getItems()
Definition:
AbstractCollection.php:49
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media
Definition:
AbstractCollection.php:1
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\CssCollection
Definition:
CssCollection.php:21
src
GlobalScreen
Scope
Layout
MetaContent
Media
CssCollection.php
Generated on Tue Sep 2 2025 20:01:28 for ILIAS by
1.8.13 (using
Doxyfile
)