Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
object
elements
summary
tags.php
Go to the documentation of this file.
1
<?php
9
$tags
=
elgg_extract
(
'tags'
,
$vars
,
''
);
10
if
(
$tags
===
false
) {
11
return
;
12
}
13
14
$entity
=
elgg_extract
(
'entity'
,
$vars
);
15
if
(
$tags
===
''
&&
$entity
instanceof
ElggEntity
) {
16
$tags
=
elgg_view
(
'output/tags'
, [
17
'entity'
=>
$entity
,
18
]);
19
}
20
21
echo
$tags
;
$entity
if($tags===false) $entity
Definition:
tags.php:14
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
$vars
$vars['class']
Elgg tag input Displays a tag input field.
Definition:
tags.php:12
ElggEntity
Definition:
ElggEntity.php:52
$tags
$tags
Output object tags.
Definition:
tags.php:9
Generated on Thu Dec 12 2024 00:00:23 for Elgg by
1.8.11