Elgg  Version 1.11
Variables
initialize_elgg.php File Reference

Go to the source code of this file.

Variables

 $elgg
 Initialize Elgg's js lib with the uncacheable data. More...
 
 $page_owner = elgg_get_page_owner_entity()
 
if($page_owner instanceof ElggEntity$user = elgg_get_logged_in_user_entity()
 
 if ($user instanceof ElggUser)
 

Variable Documentation

$elgg
Initial value:
= array(
'config' => array(
'lastcache' => (int)elgg_get_config('lastcache'),
'viewtype' => elgg_get_viewtype(),
'simplecache_enabled' => (int)elgg_is_simplecache_enabled(),
),
'security' => array(
'token' => array(
'__elgg_ts' => $ts = time(),
'__elgg_token' => generate_action_token($ts),
),
),
'session' => array(
'user' => null,
'token' => _elgg_services()->session->get('__elgg_session'),
),
)
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
generate_action_token($timestamp)
Generate an action token.
Definition: actions.php:167
elgg_get_viewtype()
Return the current view type.
Definition: views.php:91
_elgg_services()
Definition: autoloader.php:14
elgg_is_simplecache_enabled()
Is simple cache enabled.
Definition: cache.php:162

Initialize Elgg's js lib with the uncacheable data.

Definition at line 6 of file initialize_elgg.php.

Definition at line 24 of file initialize_elgg.php.

Definition at line 29 of file initialize_elgg.php.

if($user instanceof ElggUser)

Definition at line 30 of file initialize_elgg.php.