3 declare(strict_types=1);
51 bool $include_empty_blocks =
true,
58 $this->mode_manager = $domain->
content()->mode($container);
67 if (!is_null($this->can_manage)) {
70 $user = $this->domain->user();
71 $rbacsystem = $this->domain->rbac()->system();
76 if ($rbacsystem->checkAccess(
"write", $this->container->getRefId()) ||
77 $this->container->getHiddenFilesFound() ||
78 $this->repo_clipboard->hasEntries()) {
79 $this->can_manage =
true;
83 $this->can_manage =
false;
101 $user = $this->domain->user();
102 $rbacsystem = $this->domain->rbac()->system();
104 if (is_null($this->can_order)) {
105 $this->can_order =
false;
107 is_object($this->container) &&
108 $rbacsystem->checkAccess(
"write", $this->container->getRefId())) {
121 if ($this->mode_manager->isActiveItemOrdering()) {
144 $ref_id = $this->container->getRefId();
148 $this->container->getRefId(),
149 $this->container->getId(),
150 $this->container->getType()
151 ) as $class_provider) {
152 $id = get_class($class_provider);
167 $this->container->getType(),
172 protected function init(): void
175 if (!is_null($this->item_set)) {
180 $ref_id = $this->container->getRefId();
182 $this->item_set = $this->domain->content()->itemSetTree(
$ref_id, $this->container_user_filter);
184 $this->item_set = $this->domain->content()->itemSetFlat(
186 $this->container_user_filter,
192 $view = $this->domain->content()->view($this->container);
194 $this->sequence_generator = $this->domain->content()->itemBlockSequenceGenerator(
196 $view->getBlockSequence(),
206 return $this->item_set->hasItems();
212 return $this->sequence_generator->getSequence();
218 return $this->sequence_generator->getPageEmbeddedBlockIds();
224 return $this->item_set->getRawDataByRefId($ref_id);
230 return $this->item_set->getAllRefIds();
236 return $this->item_set->getRefIdsOfType($type);
canOrderItems()
Controls the ordering subtab.
ModeManager $mode_manager
isClassificationFilterActive()
getPageEmbeddedBlockIds()
Manages container subitems set.
Stores repository clipboard data.
__construct(InternalDomainService $domain, \ilContainer $container, ?\ilContainerUserFilter $container_user_filter, ClipboardManager $repo_clipboard, bool $include_empty_blocks=true, ?string $lang=null)
getRefIdsOfType(string $type)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getRawDataByRefId(int $ref_id)
InternalDomainService $domain
ClipboardManager $repo_clipboard
Generates concrete blocks with items for the view.
ilContainerUserFilter $container_user_filter
bool $include_empty_blocks
static _lookupSortMode(int $a_obj_id)
ItemSessionRepository $item_repo
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Manages items in repository clipboard.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
isActiveItemOrdering(string $type)
Are we currently in ordering view and the items can be ordered?
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
ItemBlock ItemBlockSequenceGenerator $sequence_generator
forceSessionOrderingByDate()
static getValidProviders(int $a_parent_ref_id, int $a_parent_obj_id, string $a_parent_obj_type)
Get all valid providers (for parent container)
High level business logic class.