19 declare(strict_types=1);
58 InternalRepoService $repo_service,
59 InternalDataService $data_service,
64 $this->repo_clipboard = $DIC
73 $this->item_repo = $this->repo_service->content()->item();
74 $this->mode_repo = $this->repo_service->content()->mode();
75 $this->copage_resources = $DIC->copage()->internal()->domain()->pc()->resources();
89 $this->
mode($container),
90 $DIC->container()->internal()->gui()->standardRequest()
100 bool $include_empty_blocks =
true,
104 $this->domain_service,
106 $container_user_filter,
107 $this->repo_clipboard,
108 $include_empty_blocks,
120 if (!isset(self::$flat_item_set_managers[$ref_id])) {
122 $this->domain_service,
128 return self::$flat_item_set_managers[
$ref_id];
138 if (!isset(self::$tree_item_set_managers[$ref_id])) {
140 $this->domain_service,
146 return self::$tree_item_set_managers[
$ref_id];
155 $this->domain_service,
169 switch ($view_mode) {
170 case \ilContainer::VIEW_SIMPLE:
172 $this->data_service->content(),
178 case \ilContainer::VIEW_OBJECTIVE:
180 $this->data_service->content(),
187 case \ilContainer::VIEW_SESSIONS:
188 case \ilCourseConstants::IL_CRS_VIEW_TIMING:
190 $this->data_service->content(),
197 case \ilContainer::VIEW_BY_TYPE:
200 $this->data_service->content(),
207 return $container_view;
219 if (!isset(self::$mode_managers[$container->
getId()])) {
223 $this->repo_clipboard,
224 $this->domain_service->user()->
getId()
227 return self::$mode_managers[$container->
getId()];
236 bool $results_on_filter_only =
false 238 return new FilterManager(
240 $this->repo_service->content(),
241 $this->domain_service->metadata(),
243 $container_user_filter,
244 $results_on_filter_only
252 bool $include_empty_blocks =
true,
254 ): ItemBlockSequenceGenerator {
255 return new ItemBlockSequenceGenerator(
256 $this->data_service->content(),
262 $include_empty_blocks,
__construct(InternalRepoService $repo_service, InternalDataService $data_service, InternalDomainService $domain_service)
Manages container subitems set.
items(\ilContainer $container)
Controls item state (e.g.
InternalDataService $data_service
Stores repository clipboard data.
static array $flat_item_set_managers
filteredSubtree()
Note grp/crs currently allow to filter in their whole subtrees Catetories only their direct childs...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS COPage PC Resources ResourcesManager $copage_resources
ILIAS Repository Clipboard ClipboardManager $repo_clipboard
InternalRepoService $repo_service
itemSetFlat(int $ref_id, ?\ilContainerUserFilter $user_filter)
Manages set of conatiner items (flat version)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
itemBlockSequenceGenerator(\ilContainer $container, BlockSequence $block_sequence, ItemSetManager $item_set_manager, bool $include_empty_blocks=true, ?string $lang=null)
static array $mode_managers
mode(\ilContainer $container)
Controls admin/content view state Note: The node manager currently holds "state". ...
InternalDomainService $domain_service
itemPresentation(\ilContainer $container, ?\ilContainerUserFilter $container_user_filter, bool $include_empty_blocks=true, ?string $lang=null)
Manages item retrieval, filtering, grouping and sorting.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
itemSetTree(int $ref_id, ?\ilContainerUserFilter $user_filter)
Manages set of conatiner items (flat version)
filter(array $objects, ?\ilContainerUserFilter $container_user_filter, bool $results_on_filter_only=false)
static array $tree_item_set_managers
ModeSessionRepository $mode_repo
view(\ilContainer $container)
itemSetSingle(int $ref_id, int $single_ref_id)
Manages set of conatiner items (single item version)
ItemSessionRepository $item_repo
High level business logic class.