Elgg
Version 5.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
input
number.php
Go to the documentation of this file.
1
<?php
9
$vars
[
'class'
] =
elgg_extract_class
(
$vars
,
'elgg-input-number'
);
10
11
$defaults
= [
12
'value'
=>
''
,
13
'disabled'
=>
false
,
14
'type'
=>
'number'
15
];
16
17
$vars
= array_merge(
$defaults
,
$vars
);
18
19
echo
elgg_format_element
(
'input'
,
$vars
);
$vars
$vars['class']
Elgg number input Displays a number input field.
Definition:
number.php:9
elgg_extract_class
elgg_extract_class(array $array, $existing=[], $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
Definition:
elgglib.php:276
$defaults
$defaults
Definition:
number.php:11
elgg_format_element
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition:
output.php:145
Generated on Thu Sep 21 2023 00:00:20 for Elgg by
1.8.11