55 if(self::$instance != null)
57 return self::$instance;
129 if(!$this->active || !(
int)$a_ref_id)
135 if(!in_array($a_ref_id,$this->container_items)
and 152 $this->active =
true;
162 $this->active =
false;
163 $this->container = null;
164 unset(
$_SESSION[
'member_view_container']);
208 $this->enabled =
true;
210 if(isset(
$_SESSION[
'member_view_container']))
212 $this->active =
true;
213 $this->container = (int)
$_SESSION[
'member_view_container'];
214 $this->container_items = $tree->getSubTreeIds($this->
getContainer());
223 if((
int)
$_GET[
'ref_id'])
225 return $this->current_ref_id = (int) $_GET[
'ref_id'];
228 $target_arr = explode(
'_',(
string) $_GET[
'target']);
231 $this->current_ref_id = (int) $target_arr[1];
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.
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.