Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
elements
forms
input.php
Go to the documentation of this file.
1
<?php
6
$input_type
=
elgg_extract
(
'input_type'
,
$vars
);
7
unset(
$vars
[
'input_type'
]);
8
9
$input
=
elgg_view
(
"input/$input_type"
,
$vars
);
10
11
echo
elgg_format_element
(
'div'
, [
12
'class'
=>
'elgg-field-input'
,
13
],
$input
);
elgg_extract
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition:
elgglib.php:256
elgg_view
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition:
views.php:156
$input_type
$input_type
Helper view that can be used to filter vars for all input views.
Definition:
input.php:6
$input
$input
Definition:
input.php:9
$vars
$vars
Definition:
theme.php:5
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 Wed Dec 4 2024 00:00:22 for Elgg by
1.8.11