Elgg  Version 2.3
Functions
deprecated-2.1.php File Reference

Go to the source code of this file.

Functions

 row_to_elggrelationship ($row)
 Convert a database row to a new . More...
 
 system_messages ($message=null, $register="success", $count=false)
 Queues a message to be displayed. More...
 
 _elgg_delete_river (array $options=[])
 Alias of elgg_delete_river() that doesn't raise notices. More...
 
 elgg_delete_river (array $options=array())
 Delete river items. More...
 

Function Documentation

_elgg_delete_river ( array  $options = [])

Alias of elgg_delete_river() that doesn't raise notices.

Parameters
array$optionsOptions for elgg_delete_river()
Returns
bool

Definition at line 75 of file deprecated-2.1.php.

elgg_delete_river ( array  $options = array())

Delete river items.

Warning
Does not fire permission hooks or delete, river events.
Parameters
array$optionsParameters: ids => INT|ARR River item id(s) subject_guids => INT|ARR Subject guid(s) object_guids => INT|ARR Object guid(s) target_guids => INT|ARR Target guid(s) annotation_ids => INT|ARR The identifier of the annotation(s) action_types => STR|ARR The river action type(s) identifier views => STR|ARR River view(s)

types => STR|ARR Entity type string(s) subtypes => STR|ARR Entity subtype string(s) type_subtype_pairs => ARR Array of type => subtype pairs where subtype can be an array of subtype strings

posted_time_lower => INT The lower bound on the time posted posted_time_upper => INT The upper bound on the time posted

Returns
bool
Since
1.8.0

Definition at line 106 of file deprecated-2.1.php.

row_to_elggrelationship (   $row)

Convert a database row to a new .

Parameters
\stdClass$rowDatabase row from the relationship table
Returns
|false private

Definition at line 11 of file deprecated-2.1.php.

system_messages (   $message = null,
  $register = "success",
  $count = false 
)

Queues a message to be displayed.

Messages will not be displayed immediately, but are stored in for later display, usually upon next page load.

The method of displaying these messages differs depending upon plugins and viewtypes. The core default viewtype retrieves messages in views/default/page/shells/default.php and displays messages as javascript popups.

Note
Internal: Messages are stored as strings in the Elgg session as ['msg'][$register] array.
Warning
This function is used to both add to and clear the message stack. If $messages is null, $register will be returned and cleared. If $messages is null and $register is empty, all messages will be returned and removed.
Parameters
mixed$messageOptionally, a single message or array of messages to add, (default: null)
string$registerTypes of message: "error", "success" (default: success)
bool$countCount the number of messages (default: false)
Returns
bool|array Either the array of messages, or a response regarding whether the message addition was successful.

Definition at line 43 of file deprecated-2.1.php.