Elgg  Version 6.2
Variables
longtext.php File Reference

Go to the source code of this file.

Variables

 $vars ['class'] = elgg_extract_class($vars, 'elgg-input-longtext')
 Elgg long text input Displays a long text input field that can use WYSIWYG editor. More...
 
 $defaults
 
 $editor_opts = (array) elgg_extract('editor_options', $vars, [])
 
 $editor_opts ['disabled'] = !elgg_extract('editor', $vars, true)
 
 $editor_opts ['required'] = elgg_extract('required', $vars)
 
 $vars ['data-editor-opts'] = json_encode($editor_opts)
 
 $value = htmlspecialchars(elgg_extract('value', $vars, ''), ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8')
 

Variable Documentation

◆ $defaults

$defaults
Initial value:
= [
'rows' => '10',
'cols' => '50',
'id' => 'elgg-input-' . base_convert(mt_rand(), 10, 36),
]

Definition at line 18 of file longtext.php.

◆ $editor_opts [1/3]

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

Definition at line 26 of file longtext.php.

◆ $editor_opts [2/3]

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

Definition at line 27 of file longtext.php.

◆ $editor_opts [3/3]

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

Definition at line 28 of file longtext.php.

◆ $value

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

Definition at line 36 of file longtext.php.

◆ $vars [1/2]

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

Elgg long text input Displays a long text input field that can use WYSIWYG editor.

@uses $vars['value'] The current value, if any - will be html encoded @uses $vars['disabled'] Is the input field disabled? @uses $vars['class'] Additional CSS class @uses $vars['editor'] Enable WYSIWYG support Requires a plugin that implements a WYWIWYG library (e.g. bundled ckeditor plugin) @uses $vars['editor_type'] The type of editor eg. 'simple'. It determines the style of the editor (if supported). @uses $vars['editor_options'] Additional options to pass to the editor

Definition at line 16 of file longtext.php.

◆ $vars [2/2]

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

Definition at line 34 of file longtext.php.