Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
river
object
create.php
Go to the documentation of this file.
1
<?php
9
$item
=
elgg_extract
(
'item'
,
$vars
);
10
if
(!
$item
instanceof
ElggRiverItem
) {
11
return
;
12
}
13
14
$object
=
$item
->getObjectEntity();
15
if
(!
$object
instanceof
ElggObject
) {
16
return
;
17
}
18
19
$vars
[
'message'
] =
elgg_get_excerpt
((
string
)
$object
->description);
20
21
echo
elgg_view
(
'river/elements/layout'
,
$vars
);
$item
$item
Post comment river view.
Definition:
create.php:6
$vars
if(elgg_substr($message,-3)=== '...') $vars['message']
Definition:
create.php:50
$object
if(!$item instanceof ElggRiverItem) $object
Definition:
create.php:14
elgg_get_excerpt
elgg_get_excerpt(string $text, int $num_chars=250)
Returns an excerpt.
Definition:
output.php:83
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
ElggRiverItem
Definition:
ElggRiverItem.php:18
ElggObject
Definition:
ElggObject.php:15
Generated on Wed Dec 4 2024 00:00:23 for Elgg by
1.8.11