Elgg
Version 1.9
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
json
river
item.php
Go to the documentation of this file.
1
<?php
8
$item
=
$vars
[
'item'
];
9
$object
=
$item
->toObject();
10
if
(
elgg_view_exists
(
$item
->view,
'default'
)) {
11
$object
->description =
elgg_view
(
'river/elements/summary'
, array(
'item'
=>
$item
), FALSE, FALSE,
'default'
);
12
}
13
14
echo
json_encode(
$object
);
$object
$object
Definition:
item.php:9
elgg_view_exists
elgg_view_exists($view, $viewtype= '', $recurse=true)
Returns whether the specified view exists.
Definition:
views.php:318
$item
$item
Definition:
item.php:12
echo
elgg echo
Translates a string.
Definition:
languages.js:43
elgg_view
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition:
views.php:354
$vars
if(file_exists($welcome)) $vars
Definition:
upgrade.php:93
Generated on Sun Oct 13 2024 00:00:37 for Elgg by
1.8.11