From 235cec060d6cc8b05401f4a6a13660023e6dc36a Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 23 May 2008 18:04:07 +0000 Subject: Slight tweak to the entities getEntitiesFromRelationship method. We need inverse relationships! git-svn-id: https://code.elgg.org/elgg/trunk@709 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engine/lib') diff --git a/engine/lib/entities.php b/engine/lib/entities.php index d3edb2ef3..3ae68a685 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -282,12 +282,13 @@ * Gets an array of entities from a specific relationship type * * @param string $relationship Relationship type (eg "friends") + * @param true|false $inverse Is this an inverse relationship? * @param int $limit Number of elements to return * @param int $offset Indexing offset * @return array|false An array of entities or false on failure */ - function getEntitiesFromRelationship($relationship, $limit = 50, $offset = 0) { - return get_entities_from_relationship($relationship,$this->getGUID(),false,"","","","time_created desc",$limit,$offset); + function getEntitiesFromRelationship($relationship, $inverse = false, $limit = 50, $offset = 0) { + return get_entities_from_relationship($relationship,$this->getGUID(),$inverse,"","","","time_created desc",$limit,$offset); } /** -- cgit v1.2.3