Elgg  Version 2.3
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
 

Variable Documentation

◆ $contexts

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

Definition at line 13 of file contents.php.

◆ $data

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

Definition at line 18 of file contents.php.

◆ $guid

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

Definition at line 11 of file contents.php.

◆ $input

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

Definition at line 15 of file contents.php.

◆ $mac

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

Definition at line 14 of file contents.php.

◆ $page_owner_guid

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

Definition at line 12 of file contents.php.

◆ $params

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

Definition at line 34 of file contents.php.

◆ $state

$state
Initial value:
= [
'contexts' => elgg_get_context_stack(),
'input' => elgg_get_config("input"),
'page_owner_guid' => elgg_get_page_owner_guid(),
]
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
elgg_get_context_stack()
Get the entire context stack (e.g.
Definition: pageowner.php:251
elgg_get_page_owner_guid($guid=0)
Gets the guid of the entity that owns the current page.
Definition: pageowner.php:22

Definition at line 4 of file contents.php.

◆ $user

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

Definition at line 24 of file contents.php.