Elgg  Version 2.3
Variables
num_display.php File Reference

Go to the source code of this file.

Variables

 $widget = elgg_extract('entity', $vars)
 Widget edit num_display. More...
 
 $name = elgg_extract('name', $vars, 'num_display')
 
 $vars ['name'] = "params[{$name}]"
 
if(!isset($vars['label'])) $vars ['#label'] = $vars['label']
 
if(!isset($vars['options'])) $value = sanitize_int($widget->$name, false)
 
if(! $value) $vars ['value'] = $value
 
 $vars ['#type'] = 'select'
 

Variable Documentation

◆ $name

$name = elgg_extract('name', $vars, 'num_display')

Definition at line 16 of file num_display.php.

◆ $value

if (!isset( $vars[ 'options'])) $value = sanitize_int($widget->$name, false)

Definition at line 29 of file num_display.php.

◆ $vars [1/4]

if (!isset( $vars[ 'label'])) $vars['#label'] = $vars['label']

Definition at line 22 of file num_display.php.

◆ $vars [2/4]

$vars['#type'] = 'select'

Definition at line 34 of file num_display.php.

◆ $vars [3/4]

$vars[ 'name'] = "params[{$name}]"

Definition at line 17 of file num_display.php.

◆ $vars [4/4]

if (! $value) $vars[ 'value'] = $value

Definition at line 33 of file num_display.php.

◆ $widget

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

Widget edit num_display.

@uses $vars['entity'] ElggWidget @uses $vars['name'] (optional) The name of the attribute, defaults to 'num_display' @uses $vars['default'] (optional) The default value if no value is set, defaults to first option

Definition at line 10 of file num_display.php.