19 declare(strict_types=1);
53 ClipboardManager $repo_clipboard,
54 bool $include_empty_blocks =
true,
61 $this->mode_manager = $domain->content()->mode($container);
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 $ref_id = $this->container->getRefId();
185 $this->item_set = $this->domain->content()->itemSetTree(
$ref_id, $this->container_user_filter);
187 $this->item_set = $this->domain->content()->itemSetFlat(
189 $this->container_user_filter,
195 $view = $this->domain->content()->view($this->container);
197 $this->sequence_generator = $this->domain->content()->itemBlockSequenceGenerator(
199 $view->getBlockSequence(),
209 return $this->item_set->hasItems();
215 return $this->sequence_generator->getSequence();
221 return $this->sequence_generator->getPageEmbeddedBlockIds();
227 return $this->item_set->getRawDataByRefId($ref_id);
233 return $this->item_set->getAllRefIds();
239 return $this->item_set->getRefIdsOfType($type);
Manages container subitems set.
ModeManager $mode_manager
Stores repository clipboard data.
ItemSessionRepository $item_repo
__construct(InternalDomainService $domain, \ilContainer $container, ?\ilContainerUserFilter $container_user_filter, ClipboardManager $repo_clipboard, bool $include_empty_blocks=true, ?string $lang=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ClipboardManager $repo_clipboard
Generates concrete blocks with items for the view.
getPageEmbeddedBlockIds()
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static _lookupSortMode(int $a_obj_id)
forceSessionOrderingByDate()
isClassificationFilterActive()
InternalDomainService $domain
canOrderItems()
Controls the ordering subtab.
ilContainerUserFilter $container_user_filter
getRefIdsOfType(string $type)
isActiveItemOrdering(string $type)
Are we currently in ordering view and the items can be ordered?
ItemBlock ItemBlockSequenceGenerator $sequence_generator
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
getRawDataByRefId(int $ref_id)
static getValidProviders(int $a_parent_ref_id, int $a_parent_obj_id, string $a_parent_obj_type)
Get all valid providers (for parent container)
bool $include_empty_blocks
High level business logic class.