Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
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)
 
 $params
 
 username
 

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.

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

Definition at line 12 of file contents.php.

$params
Initial value:
= [
"entity" => $user
if(!elgg_build_hmac($data) ->matchesToken($mac)) $user
Definition: contents.php:24

Definition at line 34 of file contents.php.

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

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.

username
Initial value:
=> $user->username,
"name" => $user->name,
]
if(!elgg_build_hmac($data) ->matchesToken($mac)) $user
Definition: contents.php:24

Definition at line 36 of file contents.php.