Elgg
Version 2.3
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
input
plaintext.php
Go to the documentation of this file.
1
<?php
15
$vars
[
'class'
] =
elgg_extract_class
(
$vars
,
'elgg-input-plaintext'
);
16
17
$defaults
= array(
18
'value'
=>
''
,
19
'rows'
=>
'10'
,
20
'cols'
=>
'50'
,
21
'disabled'
=>
false
,
22
);
23
24
$vars
= array_merge(
$defaults
,
$vars
);
25
26
$value
= htmlspecialchars(
$vars
[
'value'
], ENT_QUOTES,
'UTF-8'
);
27
unset(
$vars
[
'value'
]);
28
29
echo
elgg_format_element
(
'textarea'
,
$vars
,
$value
);
$value
$value
Definition:
plaintext.php:26
elgg_extract_class
elgg_extract_class(array $array, $existing=[])
Extract class names from an array with key "class", optionally merging into a preexisting set...
Definition:
elgglib.php:1396
elgg_format_element
elgg_format_element($tag_name, array $attributes=array(), $text= '', array $options=array())
Format an HTML element.
Definition:
output.php:208
$vars
$vars['class']
Definition:
plaintext.php:15
echo
elgg echo
Translates a string.
Definition:
languages.js:48
$defaults
$defaults
Definition:
plaintext.php:17
Generated on Sat Dec 21 2024 00:01:05 for Elgg by
1.8.11