58 $this->tree = $DIC->repositoryTree();
69 if (self::$instance != null) {
70 return self::$instance;
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'];
232 $target_arr = explode(
'_', (
string) $_GET[
'target']);
234 $this->current_ref_id = (int) $target_arr[1];
getContainer()
Returns $container.
toggleActivation($a_ref_id, $a_activation)
Toggle activation status.
setContainer($container)
Sets $container.
activate($a_ref_id)
Enable member view for this session and container.
getCurrentRefId()
Get current ref_id of request.
isActiveForRefId($a_ref_id)
Check if member view is currently enabled for given ref id.
Create styles array
The data for the language used.
isActive()
Check if member view currently enabled.
isEnabled()
Check if members view is enabled in the administration.
findEffectiveRefId()
Find effective ref_id for request.
__construct()
Constructor (singleton)
static getInstance()
Get instance.
deactivate()
Deactivate member view.