ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
CssCollection.php
Go to the documentation of this file.
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 *****************************************************************************/
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}
An exception for terminatinating execution or to throw for unit testing.