Elgg  Version master
Variables
file.php File Reference

Go to the source code of this file.

Variables

if(!empty($vars['value'])) $vars ['class'] = elgg_extract_class($vars, 'elgg-input-file')
 Elgg file input Displays a file input field. More...
 
 $defaults
 
 $max_size = elgg_extract('max_size', $vars, true)
 
 if ( $max_size !==false)
 

Variable Documentation

◆ $defaults

$defaults
Initial value:
= [
'type' => 'file',
]

Definition at line 21 of file file.php.

◆ $max_size

$max_size = elgg_extract('max_size', $vars, true)

Definition at line 27 of file file.php.

◆ $vars

$vars = elgg_extract_class($vars, 'elgg-input-file')

Elgg file input Displays a file input field.

@uses $vars['value'] The current value if any @uses $vars['class'] Additional CSS class @uses $vars['max_size'] bool|int true for autodetection of max upload size (default), false to disable or int for a custom file size to check

Definition at line 19 of file file.php.

◆ if

if($max_size !==false) (   $max_size ! = = false)

Definition at line 30 of file file.php.