29 $item = new \ElggRiverItem();
102 return \Elgg\Database\River::find(
$options);
139 'subject_guid',
'subject_guids',
140 'object_guid',
'object_guids',
141 'target_guid',
'target_guids',
142 'annotation_id',
'annotation_ids',
163 $options[
'batch_inc_offset'] =
false;
173 foreach ($river as $river_item) {
174 if ($river_item->delete()) {
179 return $success ===
$count;
198 'pagination' =>
true,
199 'list_class' =>
'elgg-list-river',
205 if (
$options[
'register_rss_link']) {
219 $count_needed =
true;
221 $count_needed =
false;
223 $count_needed =
false;
225 $count_needed =
false;
229 $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.
if($item instanceof\ElggEntity) elseif($item instanceof\ElggRiverItem) elseif($item instanceof\ElggRelationship) elseif(is_callable([$item, 'getType']))
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
if($who_can_change_language=== 'nobody') elseif($who_can_change_language=== 'admin_only'&&!elgg_is_admin_logged_in()) $options
const ELGG_IGNORE_ACCESS
elgg_call() flags
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
elgg_get_river(array $options=[])
Get river items.
if($container instanceof ElggGroup &&$container->guid!=elgg_get_page_owner_guid()) $key
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_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.