ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
CssCollection.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
21 
27 {
31  public function addItem(Css $item): void
32  {
33  $real_path = realpath(parse_url($item->getContent(), PHP_URL_PATH));
34  foreach ($this->getItems() as $css) {
35  if (realpath(parse_url($css->getContent(), PHP_URL_PATH)) === $real_path) {
36  return;
37  }
38  }
39  $this->items[] = $item;
40  }
41 
45  public function getItemsInOrderOfDelivery(): array
46  {
47  return parent::getItemsInOrderOfDelivery();
48  }
49 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...