19declare(strict_types=1);
70 if (!is_null($this->can_manage)) {
73 $user = $this->domain->user();
74 $rbacsystem = $this->domain->rbac()->system();
79 if ($rbacsystem->checkAccess(
"write", $this->container->getRefId()) ||
80 $this->container->getHiddenFilesFound() ||
81 $this->repo_clipboard->hasEntries()) {
82 $this->can_manage =
true;
86 $this->can_manage =
false;
104 $user = $this->domain->user();
105 $rbacsystem = $this->domain->rbac()->system();
107 if (is_null($this->can_order)) {
108 $this->can_order =
false;
110 is_object($this->container) &&
111 $rbacsystem->checkAccess(
"write", $this->container->getRefId())) {
124 if ($this->mode_manager->isActiveItemOrdering()) {
147 $ref_id = $this->container->getRefId();
151 $this->container->getRefId(),
152 $this->container->getId(),
153 $this->container->getType()
154 ) as $class_provider) {
155 $id = get_class($class_provider);
170 $this->container->getType(),
175 protected function init(): void
178 if (!is_null($this->item_set)) {
183 $view = $this->domain->content()->view($this->container);
185 $ref_id = $this->container->getRefId();
187 $this->item_set = $this->domain->content()->itemSetTree(
$ref_id, $this->container_user_filter);
189 $this->item_set = $this->domain->content()->itemSetFlat(
191 $this->container_user_filter,
198 $this->sequence_generator = $this->domain->content()->itemBlockSequenceGenerator(
200 $view->getBlockSequence(),
202 $this->include_empty_blocks,
210 return $this->item_set->hasItems();
216 return $this->sequence_generator->getSequence();
222 return $this->sequence_generator->getPageEmbeddedBlockIds();
228 return $this->item_set->getRawDataByRefId(
$ref_id);
234 return $this->item_set->getAllRefIds();
240 return $this->item_set->getRefIdsOfType($type);
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Generates concrete blocks with items for the view.
High level business logic class.
__construct(InternalDomainService $domain, \ilContainer $container, ?\ilContainerUserFilter $container_user_filter, ClipboardManager $repo_clipboard, bool $include_empty_blocks=true, ?string $lang=null)
getRefIdsOfType(string $type)
InternalDomainService $domain
getRawDataByRefId(int $ref_id)
ItemBlock ItemBlockSequenceGenerator $sequence_generator
forceSessionOrderingByDate()
ModeManager $mode_manager
getPageEmbeddedBlockIds()
ClipboardManager $repo_clipboard
ItemSessionRepository $item_repo
ilContainerUserFilter $container_user_filter
isClassificationFilterActive()
canOrderItems()
Controls the ordering subtab.
isActiveItemOrdering(string $type)
Are we currently in ordering view and the items can be ordered?
bool $include_empty_blocks
Stores repository clipboard data.
Manages container subitems set.
Manages items in repository clipboard.
static getValidProviders(int $a_parent_ref_id, int $a_parent_obj_id, string $a_parent_obj_type)
Get all valid providers (for parent container)
static _lookupSortMode(int $a_obj_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...