Elgg  Version 1.11
Variables
access.php File Reference

Go to the source code of this file.

Variables

if(isset($vars['options_values'])) $entity_allows_comments = elgg_extract('entity_allows_comments', $vars, true)
 Elgg access level input Displays a dropdown input field. More...
 
 $vars ['class'] = (array) elgg_extract('class', $vars, [])
 
 $vars ['class'][] = 'elgg-input-access'
 
 $params = array()
 
 $keys
 
foreach($keys as $key=> $default_value) $entity = $params['entity']
 
if($entity$container = elgg_get_page_owner_entity()
 
if(!$params['container_guid']&&$container) if(!isset($vars['value'])||$vars['value']==ACCESS_DEFAULT$params ['value'] = $vars['value']
 
if(!isset($vars['options_values'])) if(!isset($vars['disabled'])) if(!isset($vars['options_values'][$vars['value']])) if(($container instanceof ElggGroup)&&$container->getContentAccessMode()===ElggGroup::CONTENT_ACCESS_MODE_MEMBERS_ONLY &&!elgg_in_context('group-edit')&&!($entity instanceof ElggGroup)) else
 
 if ($show_override_notice)
 

Variable Documentation

Definition at line 62 of file access.php.

foreach ($keys as $key=> $default_value) $entity = $params['entity']

Definition at line 48 of file access.php.

if (isset($vars['options_values'])) $entity_allows_comments = elgg_extract('entity_allows_comments', $vars, true)

Elgg access level input Displays a dropdown input field.

$vars['value'] The current value, if any $vars['options_values'] Array of value => label pairs (overrides default) $vars['name'] The name of the input field $vars['entity'] Optional. The entity for this access control (uses access_id) $vars['class'] Additional CSS class

$vars['entity_type'] Optional. Type of the entity $vars['entity_subtype'] Optional. Subtype of the entity $vars['container_guid'] Optional. Container GUID of the entity $vars['entity_allows_comments'] Optional. (bool) whether the entity uses comments - used for UI display of access change warnings

Definition at line 26 of file access.php.

$keys
Initial value:
= array(
'entity' => null,
'entity_type' => null,
'entity_subtype' => null,
'container_guid' => null,
'purpose' => 'read',
)

Definition at line 35 of file access.php.

$params = array()

Definition at line 33 of file access.php.

if (!$params['container_guid']&&$container) if (!isset($vars['value'])||$vars['value']==ACCESS_DEFAULT) $params['value'] = $vars['value']

Definition at line 79 of file access.php.

$vars['class'] = (array) elgg_extract('class', $vars, [])

Definition at line 29 of file access.php.

$vars['class'][] = 'elgg-input-access'

Definition at line 30 of file access.php.

if (!isset($vars['options_values'])) if (!isset($vars['disabled'])) if (!isset($vars['options_values'][$vars['value']])) if (($container instanceof ElggGroup)&&$container->getContentAccessMode()===ElggGroup::CONTENT_ACCESS_MODE_MEMBERS_ONLY &&!elgg_in_context('group-edit')&&!($entity instanceof ElggGroup)) else
Initial value:
{
$show_override_notice = false

Definition at line 103 of file access.php.

if($show_override_notice)

Definition at line 107 of file access.php.