28 $item = new \ElggRiverItem();
101 return \Elgg\Database\River::find(
$options);
137 'subject_guid',
'subject_guids',
138 'object_guid',
'object_guids',
139 'target_guid',
'target_guids',
140 'annotation_id',
'annotation_ids',
160 $options[
'batch_inc_offset'] =
false;
170 foreach ($river as $river_item) {
171 if ($river_item->delete()) {
176 return $success ==
$count;
195 'pagination' =>
true,
196 'list_class' =>
'elgg-list-river',
202 if (
$options[
'register_rss_link']) {
216 $count_needed =
true;
218 $count_needed =
false;
220 $count_needed =
false;
222 $count_needed =
false;
226 $options[
'count'] =
true;
elgg_call(int $flags, Closure $closure)
Calls a callable autowiring the arguments using public DI services and applying logic based on flags...
elgg_delete_river(array $options=[])
Delete river items based on $options.
elgg_create_river_item(array $options=[])
Elgg river.
const ELGG_IGNORE_ACCESS
elgg_call() flags
elgg_get_river(array $options=[])
Get river items.
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
if($item instanceof\ElggEntity) elseif($item instanceof\ElggRiverItem) elseif($item instanceof ElggRelationship) elseif(is_callable([$item, 'getType']))
elgg_get_river_item_from_id(int $id)
Get river item from its ID.
_elgg_services()
Get the global service provider.
elgg_list_river(array $options=[])
List river items.
$id
Generic annotation delete action.
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
elgg_get_logged_in_user_guid()
Return the current logged in user by guid.
elgg_register_rss_link()
Include the RSS icon link and link element in the head.