Elgg  Version 1.9
Variables
access.php File Reference

Go to the source code of this file.

Variables

if(isset($vars['class'])) else
 Elgg access level input Displays a dropdown input field. More...
 
 $defaults
 
 $entity = elgg_extract('entity', $vars)
 
 $container = elgg_get_page_owner_entity()
 
if($entity$vars = array_merge($defaults, $vars)
 

Variable Documentation

Definition at line 30 of file access.php.

$defaults
Initial value:
= array(
'disabled' => false,
'value' => get_default_access(),
'options_values' => get_write_access_array(),
)
get_default_access(ElggUser $user=null)
Gets the default access permission.
Definition: access.php:246
get_write_access_array($user_guid=0, $site_guid=0, $flush=false)
Returns an array of access permissions that the user is allowed to save content with.
Definition: access.php:484
Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 19 of file access.php.

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

Definition at line 26 of file access.php.

if ($entity) $vars = array_merge($defaults, $vars)

Definition at line 44 of file access.php.

if (($container instanceof ElggGroup)&&$container->getContentAccessMode()===ElggGroup::CONTENT_ACCESS_MODE_MEMBERS_ONLY &&!elgg_in_context('group-edit')&&!($entity &&$entity instanceof ElggGroup)) else
Initial value:
{
$vars['class'] = "elgg-input-access"
if($entity) $vars
Definition: access.php:44

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

Definition at line 15 of file access.php.