53 if(self::$instance != null)
55 return self::$instance;
108 if(!in_array(
$ref_id,$this->container_items) and
124 if(!$this->active || !(
int)$a_ref_id)
130 if(!in_array($a_ref_id,$this->container_items) and
147 $this->active =
true;
157 $this->active =
false;
158 $this->container = null;
159 unset(
$_SESSION[
'member_view_container']);
201 $this->enabled =
true;
203 if(isset(
$_SESSION[
'member_view_container']))
205 $this->active =
true;
206 $this->container = (int)
$_SESSION[
'member_view_container'];
207 $this->container_items = $tree->getSubTreeIds($this->
getContainer());
getContainer()
Returns $container.
Settings for members view
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.
isActiveForRefId($a_ref_id)
Check if member view is currently enabled for given ref id.
isActive()
Check if member view currently enabled.
isEnabled()
Check if members view is enabled in the administration.
__construct()
Constructor (singleton)
static getInstance()
Get instance.
deactivate()
Deactivate member view.