Elgg  Version 3.0
Namespaces | Variables
longtext.php File Reference

Go to the source code of this file.

Namespaces

 Elgg
 Configuration exception.
 

Variables

 $vars ['class'] = elgg_extract_class($vars, 'elgg-input-longtext')
 
 $defaults
 
 $editor_opts = (array) elgg_extract('editor_options', $vars, [])
 
 $editor_opts ['disabled'] = !elgg_extract('editor', $vars, true)
 
 $editor_opts ['state'] = elgg_extract('visual', $vars, true) ? 'visual' : 'html'
 
 $editor_opts ['required'] = elgg_extract('required', $vars)
 
 $vars ['data-editor-opts'] = json_encode($editor_opts)
 
 $value = htmlspecialchars($vars['value'], ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8')
 

Variable Documentation

$defaults
Initial value:
= [
'value' => ''

Definition at line 25 of file longtext.php.

$editor_opts = (array) elgg_extract('editor_options', $vars, [])

Definition at line 34 of file longtext.php.

$editor_opts['disabled'] = !elgg_extract('editor', $vars, true)

Definition at line 35 of file longtext.php.

$editor_opts['state'] = elgg_extract('visual', $vars, true) ? 'visual' : 'html'

Definition at line 36 of file longtext.php.

$editor_opts['required'] = elgg_extract('required', $vars)

Definition at line 37 of file longtext.php.

$value = htmlspecialchars($vars['value'], ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8')

Definition at line 46 of file longtext.php.

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

Definition at line 23 of file longtext.php.

$vars['data-editor-opts'] = json_encode($editor_opts)

Definition at line 44 of file longtext.php.