19declare(strict_types=1);
71 if (!is_null($this->can_manage)) {
74 $user = $this->domain->user();
75 $rbacsystem = $this->domain->rbac()->system();
80 if ($rbacsystem->checkAccess(
"write", $this->container->getRefId()) ||
81 $this->container->getHiddenFilesFound() ||
82 $this->repo_clipboard->hasEntries()) {
83 $this->can_manage =
true;
87 $this->can_manage =
false;
105 $user = $this->domain->user();
106 $rbacsystem = $this->domain->rbac()->system();
108 if (is_null($this->can_order)) {
109 $this->can_order =
false;
111 is_object($this->container) &&
112 $rbacsystem->checkAccess(
"write", $this->container->getRefId())) {
121 if (!is_null($this->can_delete)) {
125 $access = $this->domain->access();
127 if ($access->checkAccess(
"delete",
"", $ref_id)) {
128 return $this->can_delete =
true;
132 return $this->can_delete =
false;
141 if ($this->mode_manager->isActiveItemOrdering()) {
164 $ref_id = $this->container->getRefId();
168 $this->container->getRefId(),
169 $this->container->getId(),
170 $this->container->getType()
171 ) as $class_provider) {
172 $id = get_class($class_provider);
187 $this->container->getType(),
192 protected function init(): void
195 if (!is_null($this->item_set)) {
200 $view = $this->domain->content()->view($this->container);
202 $ref_id = $this->container->getRefId();
204 $this->item_set = $this->domain->content()->itemSetTree($ref_id, $this->container_user_filter);
206 $this->item_set = $this->domain->content()->itemSetFlat(
208 $this->container_user_filter,
215 $this->sequence_generator = $this->domain->content()->itemBlockSequenceGenerator(
217 $view->getBlockSequence(),
219 $this->include_empty_blocks,
227 return $this->item_set->hasItems();
231 array $omit_ref_ids = []
234 $this->sequence_generator->setOmitRefIds($omit_ref_ids);
235 return $this->sequence_generator->getSequence();
241 return $this->sequence_generator->getPageEmbeddedBlockIds();
247 return $this->item_set->getRawDataByRefId($ref_id);
253 return $this->item_set->getAllRefIds();
259 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)
getItemBlockSequence(array $omit_ref_ids=[])
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.
init(array|\ArrayAccess &$define, array|\ArrayAccess &$implement, array|\ArrayAccess &$use, array|\ArrayAccess &$contribute, array|\ArrayAccess &$seek, array|\ArrayAccess &$provide, array|\ArrayAccess &$pull, array|\ArrayAccess &$internal,)
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...