Elgg  Version master
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)
 
switch($access) $content
 

Variable Documentation

if (!isset($access)) if ($access===false||!elgg_is_logged_in()) $access = elgg_extract('access', $vars)

Definition at line 19 of file access.php.

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

Definition at line 46 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.