58 $this->tree =
$DIC->repositoryTree();
69 if (self::$instance !=
null) {
102 $_SESSION[
'il_cont_admin_panel'] =
false;
112 if (!isset($mv_status)) {
113 if (!$this->active) {
115 return $mv_status =
false;
120 return $mv_status =
false;
127 return $mv_status =
false;
129 return $mv_status =
true;
142 if (!$this->active || !(
int) $a_ref_id) {
147 if (!in_array($a_ref_id, $this->container_items) and
163 $this->active =
true;
173 $this->active =
false;
174 $this->container =
null;
175 unset(
$_SESSION[
'member_view_container']);
217 $this->enabled =
true;
219 if (isset(
$_SESSION[
'member_view_container'])) {
220 $this->active =
true;
221 $this->container = (int)
$_SESSION[
'member_view_container'];
231 if ((
int)
$_GET[
'ref_id']) {
232 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.
toggleActivation($a_ref_id, $a_activation)
Toggle activation status.
deactivate()
Deactivate member view.