19 if (!
$object instanceof ElggEntity) {
25 'text' =>
$subject->getDisplayName(),
26 'class' =>
'elgg-river-subject',
34 'class' =>
'elgg-river-object',
57 "river:{$type}:{$subtype}:{$action}",
58 "river:{$type}:{$subtype}:default",
59 "river:{$type}:{$action}",
60 "river:{$type}:default",
62 foreach (
$keys as $try_key) {
71 "river:$action:$type:$subtype",
72 "river:$action:$type:default",
74 foreach ($deprecated_keys as $try_key) {
78 $notice =
"Please update your river language key: '{$try_key}', suggested new key 'river:{$type}:{$subtype}:{$action}'.";
79 $notice .=
" See views/default/river/elements/summary";
90 echo trim(
"$summary $group_string");
elgg_language_key_exists($key, $language= 'en')
Check if a given language key exists.
if(!$entity instanceof ElggEntity) $summary
if(!$item instanceof ElggRiverItem) $subject
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
if(!$object instanceof ElggEntity) $subject_link
elgg echo
Translates a string.
elgg_deprecated_notice($msg, $dep_version, $backtrace_level=1)
Log a notice about deprecated use of a function, view, etc.
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
if($container instanceof ElggGroup &&$container->guid!=elgg_get_page_owner_guid()) $key
elgg_get_excerpt($text, $num_chars=250)
Returns an excerpt.
getContainerEntity()
Get the container entity for this object.
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
elgg_get_page_owner_guid($guid=0)
Gets the guid of the entity that owns the current page.
getURL()
Gets the URL for this entity.
$item
Short summary of the action that occurred.
if(!$subject instanceof ElggEntity) $object
getDisplayName()
Get the entity's display name.