aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-23 18:04:07 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-23 18:04:07 +0000
commit235cec060d6cc8b05401f4a6a13660023e6dc36a (patch)
treea2e9c9cc02614c163da2a1c94bc8288c34df1855 /engine/lib
parent76aa1d5c5e05670f293f048809e1e7653fbb92f1 (diff)
downloadelgg-235cec060d6cc8b05401f4a6a13660023e6dc36a.tar.gz
elgg-235cec060d6cc8b05401f4a6a13660023e6dc36a.tar.bz2
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
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/entities.php5
1 files changed, 3 insertions, 2 deletions
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);
}
/**