From ef3e87ebcf82fbf172aa719e23ef1a6cfca7a948 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 15 May 2008 11:22:43 +0000 Subject: Introducing getFriendsObjects to ElggUser git-svn-id: https://code.elgg.org/elgg/trunk@645 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/users.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'engine/lib') diff --git a/engine/lib/users.php b/engine/lib/users.php index a28a09ac3..dafd4945a 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -250,6 +250,15 @@ */ public function getObjects($subtype="", $limit = 10, $offset = 0) { return get_user_objects($this->getGUID(), $subtype, $limit, $offset); } + /** + * Get an array of ElggObjects owned by this user's friends. + * + * @param string $subtype The subtype of the objects, if any + * @param int $limit Number of results to return + * @param int $offset Any indexing offset + */ + public function getFriendsObjects($subtype = "", $limit = 10, $offset = 0) { return get_user_friends_objects($this->getGUID(), $subtype, $limit, $offset); } + /** * Counts the number of ElggObjects owned by this user * -- cgit v1.2.3