Elgg  Version 3.0
Variables
access.php File Reference

Go to the source code of this file.

Variables

 $entity = elgg_extract('entity', $vars)
 Displays information about access of the post. More...
 
if(!$entity instanceof ElggEntity$access = elgg_extract('access', $vars)
 
if(!isset($access)) if($access===false||!elgg_is_logged_in()) switch($access) $content
 

Variable Documentation

if (!$entity instanceof ElggEntity) $access = elgg_extract('access', $vars)

Definition at line 19 of file access.php.

if (!isset($access)) if ($access===false||!elgg_is_logged_in()) switch ($access) $content
Initial value:
= elgg_view('output/access', [
'value' => $access,
])
if(!$entity instanceof ElggEntity) $access
Definition: access.php:19
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246

Definition at line 45 of file access.php.

$entity = elgg_extract('entity', $vars)

Displays information about access of the post.

$vars['entity'] The entity to show the byline for $vars['access'] Access level of the post If not set, will display the access level of the entity (access_id attribute) If set to false, will not be rendered $vars['access_icon'] Icon name to be used with the access info Set to false to not render an icon Default is determined by access level ('user', 'globe', 'lock', or 'cog')

Definition at line 14 of file access.php.