58 $this->tree =
$DIC->repositoryTree();
69 if (self::$instance !=
null) {
102 $_SESSION[
'il_cont_admin_panel'] =
false;
113 if (!$this->active) {
139 if (!$this->active || !(
int) $a_ref_id) {
144 if (!in_array($a_ref_id, $this->container_items) and
160 $this->active =
true;
170 $this->active =
false;
171 $this->container =
null;
172 unset(
$_SESSION[
'member_view_container']);
214 $this->enabled =
true;
216 if (isset(
$_SESSION[
'member_view_container'])) {
217 $this->active =
true;
218 $this->container = (int)
$_SESSION[
'member_view_container'];
228 if ((
int)
$_GET[
'ref_id']) {
229 return $this->current_ref_id = (int)
$_GET[
'ref_id'];
An exception for terminatinating execution or to throw for unit testing.
@classDescription Settings for members view
isActive()
Check if member view currently enabled.
findEffectiveRefId()
Find effective ref_id for request.
isEnabled()
Check if members view is enabled in the administration.
getCurrentRefId()
Get current ref_id of request.
isActiveForRefId($a_ref_id)
Check if member view is currently enabled for given ref id.
activate($a_ref_id)
Enable member view for this session and container.
__construct()
Constructor (singleton)
getContainer()
Returns $container.
setContainer($container)
Sets $container.
static getInstance()
Get instance.
toggleActivation($a_ref_id, $a_activation)
Toggle activation status.
deactivate()
Deactivate member view.