18     if (
$row instanceof \stdClass) {
 
   19         return new \ElggRelationship(
$row);
 
   74     return _elgg_services()->relationshipsTable->add($guid_one, $relationship, $guid_two);
 
   89     return _elgg_services()->relationshipsTable->check($guid_one, $relationship, $guid_two);
 
  104     return _elgg_services()->relationshipsTable->remove($guid_one, $relationship, $guid_two);
 
  236         $relationship_guid = 
null, $inverse_relationship = 
false) {
 
  237     return _elgg_services()->relationshipsTable->getEntityRelationshipWhereSql(
 
  238         $column, $relationship, $relationship_guid, $inverse_relationship);
 
  294     $tests[] = 
$CONFIG->path . 
'engine/tests/ElggRelationshipTest.php';
 
  308     $events->registerHandler(
'init', 
'system', 
'_elgg_relationship_init');
 
if(! $collection_name) $id
 
$guid
Removes an admin notice.
 
elgg_register_plugin_hook_handler($hook, $type, $callback, $priority=500)
 
elgg_list_entities(array $options=array(), $getter='elgg_get_entities', $viewer='elgg_view_entity_list')
Returns a string of rendered entities.
 
elgg_list_entities_from_relationship(array $options=array())
Returns a viewable list of entities by relationship.
 
elgg_list_entities_from_relationship_count($options)
Returns a list of entities by relationship count.
 
get_entity_relationships($guid, $inverse_relationship=false)
Get all the relationships for a given GUID.
 
remove_entity_relationships($guid, $relationship="", $inverse_relationship=false, $type='')
Removes all relationships originating from a particular entity.
 
_elgg_relationship_init()
Initialize the relationship library @access private.
 
elgg_get_entities_from_relationship_count(array $options=array())
Gets the number of entities by a the number of entities related to them in a particular way.
 
get_relationship($id)
Get a relationship by its ID.
 
elgg_get_entities_from_relationship($options)
Return entities matching a given query joining against a relationship.
 
add_entity_relationship($guid_one, $relationship, $guid_two)
Create a relationship between two entities.
 
elgg_get_entity_relationship_where_sql($column, $relationship=null, $relationship_guid=null, $inverse_relationship=false)
Returns SQL appropriate for relationship joins and wheres.
 
delete_relationship($id)
Delete a relationship by its ID.
 
_elgg_relationships_test($hook, $type, $tests)
Register relationship unit tests.
 
_elgg_get_relationship_row($id)
Get a database row from the relationship table.
 
remove_entity_relationship($guid_one, $relationship, $guid_two)
Delete a relationship between two entities.
 
check_entity_relationship($guid_one, $relationship, $guid_two)
Check if a relationship exists between two entities.
 
row_to_elggrelationship($row)
Convert a database row to a new \ElggRelationship.