Elgg  Version master
Variables
access.php File Reference

Go to the source code of this file.

Variables

if(isset($vars['options_values'])) $vars ['class'] = elgg_extract_class($vars, 'elgg-input-access')
 Elgg access level input Displays a dropdown input field. More...
 
 $params = []
 
 $keys
 
foreach($keys as $key=> $default_value) $entity = $params['entity']
 
if($entity) $container = elgg_get_page_owner_entity()
 
if(! $params['container_guid'] && $container) $add_missing_value = true
 
if(!isset($vars['value'])|| $vars['value']==ACCESS_DEFAULT$params ['value'] = elgg_extract('value', $vars)
 
if(!isset($vars['options_values'])) if(!isset($vars['disabled'])) if ( $add_missing_value &&!isset( $vars[ 'options_values'][ $vars[ 'value']]))
 

Variable Documentation

◆ $add_missing_value

if (! $params[ 'container_guid'] &&$container) $add_missing_value = true

Definition at line 59 of file access.php.

◆ $container

if ( $entity) $container = elgg_get_page_owner_entity()

Definition at line 53 of file access.php.

◆ $entity

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

Definition at line 44 of file access.php.

◆ $keys

$keys
Initial value:
= [
'entity' => null,
'entity_type' => null,
'entity_subtype' => null,
'container_guid' => null,
'purpose' => 'read',
]

Definition at line 31 of file access.php.

◆ $params [1/2]

$params = []

Definition at line 29 of file access.php.

◆ $params [2/2]

if (!isset( $vars[ 'value'])||$vars[ 'value']==ACCESS_DEFAULT) $params[ 'value'] = elgg_extract('value', $vars)

Definition at line 74 of file access.php.

◆ $vars

if (isset( $vars[ 'options_values'])) $vars[ 'class'] = elgg_extract_class($vars, 'elgg-input-access')

Elgg access level input Displays a dropdown input field.

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

@uses $vars['entity_type'] Optional. Type of the entity @uses $vars['entity_subtype'] Optional. Subtype of the entity @uses $vars['container_guid'] Optional. Container GUID of the entity @usee $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.

◆ if

if (!isset( $vars[ 'options_values'])) if (!isset( $vars[ 'disabled'])) if($add_missing_value &&!isset($vars['options_values'][$vars['value']])) (   $add_missing_value &&! $vars[ 'options_values'][ $vars[ 'value']])

Definition at line 86 of file access.php.