Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
json
user
default.php
Go to the documentation of this file.
1
<?php
6
$entity
=
elgg_extract
(
'entity'
,
$vars
);
7
if
(!
$entity
instanceof
ElggEntity
) {
8
return
;
9
}
10
11
echo json_encode(
$entity
->toObject());
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
$vars
if(!array_key_exists($size, $icon_sizes)) $vars['size']
Definition:
default.php:25
$entity
$entity
Generic icon view.
Definition:
default.php:13
ElggEntity
Definition:
ElggEntity.php:52
Generated on Wed Dec 4 2024 00:00:22 for Elgg by
1.8.11