19use Psr\Http\Message\RequestInterface;
 
   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 !== 
'') {
 
Class ilCtrl provides processing control methods.
 
Component logger with individual log levels by component id.
 
Settings for members view.
 
static ilMemberViewSettings $instance
 
isActive()
Check if member view currently enabled.
 
findEffectiveRefId()
Find effective ref_id for request.
 
const SESSION_MEMBER_VIEW_CONTAINER
 
isEnabled()
Check if members view is enabled in the administration.
 
Container Service $container_service
 
isActiveForRefId(int $a_ref_id)
Check if member view is currently enabled for given ref id.
 
activate(int $a_ref_id)
Enable member view for this session and container.
 
setContainer(int $container)
 
toggleActivation(int $a_ref_id, bool $a_activation)
Toggle activation status.
 
RequestInterface $request
 
static get(string $a_var)
 
static clear(string $a_var)
 
static set(string $a_var, $a_val)
Set a value.
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...