ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
CollectionWrapperGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Repository\IRSS;
22
26
28{
29 protected \ILIAS\ResourceStorage\Services $irss;
30
31 public function __construct()
32 {
33 global $DIC;
34 $this->irss = $DIC->resourceStorage();
35 }
36
37 public function getResourceCollectionGUI(
38 ResourceStakeholder $stakeholder,
39 string $rcid,
40 string $caption,
41 bool $write = false
43 if ($rcid === "") {
44 throw new \LogicException("No resource collection ID given.");
45 }
46 $collection = $this->irss->collection()->get($this->irss->collection()->id($rcid));
47 return new \ilResourceCollectionGUI(
48 new Configuration(
49 $collection,
50 $stakeholder,
51 $caption,
53 100,
54 $write,
55 $write
56 )
57 );
58 }
59}
getResourceCollectionGUI(ResourceStakeholder $stakeholder, string $rcid, string $caption, bool $write=false)
if(!file_exists('../ilias.ini.php'))
global $DIC
Definition: shib_login.php:26