46 $this->tree = $DIC->repositoryTree();
48 $this->request = $DIC->http()->request();
49 $this->
ctrl = $DIC->ctrl();
50 $this->
logger = $DIC->logger()->cont();
52 $this->container_service = $DIC->container();
73 ilSession::set(self::SESSION_MEMBER_VIEW_CONTAINER, $this->container);
74 $this->container_service
88 if (!isset($mv_status)) {
91 return $mv_status =
false;
96 return $mv_status =
false;
103 return $mv_status =
false;
105 return $mv_status =
true;
116 if (!$this->active || !$a_ref_id) {
121 !in_array($a_ref_id, $this->container_items) &&
133 $this->active =
true;
139 $this->active =
false;
140 $this->container = null;
167 protected function read(): void
175 $this->enabled =
true;
178 $this->active =
true;
180 $this->container_items = $this->tree->getSubTreeIds($this->
getContainer());
198 if ($this->
ctrl->isAsynch()) {
203 $ref_id = (
int) ($this->request->getQueryParams()[
'ref_id'] ?? 0);
205 return $this->current_ref_id =
$ref_id;
207 $target_str = (string) ($this->request->getQueryParams()[
'target'] ??
'');
208 if ($target_str !==
'') {
211 $this->current_ref_id = (
int) $target_arr[1];
static get(string $a_var)
activate(int $a_ref_id)
Enable member view for this session and container.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
isActiveForRefId(int $a_ref_id)
Check if member view is currently enabled for given ref id.
Container Service $container_service
toggleActivation(int $a_ref_id, bool $a_activation)
Toggle activation status.
isActive()
Check if member view currently enabled.
static ilMemberViewSettings $instance
isEnabled()
Check if members view is enabled in the administration.
findEffectiveRefId()
Find effective ref_id for request.
RequestInterface $request
setContainer(int $container)
static clear(string $a_var)
static set(string $a_var, $a_val)
Set a value.
const SESSION_MEMBER_VIEW_CONTAINER