Elgg  Version master
Variables
contents.php File Reference

Go to the source code of this file.

Variables

 $state
 
 $guid = (int) get_input('g', 0, false)
 
 $page_owner_guid = (int) get_input('pog', 0, false)
 
 $contexts = (array) get_input('c', [], false)
 
 $mac = get_input('m', '', false)
 
 $input = (array) get_input('i', [], false)
 
 $data = serialize([$guid, $page_owner_guid, $contexts, $input])
 
if(!elgg_build_hmac($data) ->matchesToken($mac)) $user = get_user($guid)
 
 $menu
 

Variable Documentation

$contexts = (array) get_input('c', [], false)

Definition at line 13 of file contents.php.

$data = serialize([$guid, $page_owner_guid, $contexts, $input])

Definition at line 18 of file contents.php.

$guid = (int) get_input('g', 0, false)

Definition at line 11 of file contents.php.

$input = (array) get_input('i', [], false)

Definition at line 15 of file contents.php.

$mac = get_input('m', '', false)

Definition at line 14 of file contents.php.

$menu
Initial value:
= elgg_view_menu('user_hover', [
'entity' => $user,
'username' => $user->username,
'name' => $user->getDisplayName(),
])
elgg_view_menu($menu, array $vars=[])
Render a menu.
Definition: views.php:441

Definition at line 34 of file contents.php.

$page_owner_guid = (int) get_input('pog', 0, false)

Definition at line 12 of file contents.php.

$state
Initial value:
= [
'contexts' => elgg_get_context_stack()
elgg_get_context_stack()
Get the entire context stack (e.g.
Definition: context.php:88

Definition at line 4 of file contents.php.

if (!elgg_build_hmac($data) ->matchesToken($mac)) $user = get_user($guid)

Definition at line 24 of file contents.php.