From d98c0d4c6c56d015958bdc88baa00d6ca6bcb70d Mon Sep 17 00:00:00 2001 From: icewing Date: Fri, 23 May 2008 16:31:53 +0000 Subject: Marcus Povey * Support for river entries git-svn-id: https://code.elgg.org/elgg/trunk@701 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/relationships.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'engine/lib/relationships.php') diff --git a/engine/lib/relationships.php b/engine/lib/relationships.php index 5b9627860..ba6f0182f 100644 --- a/engine/lib/relationships.php +++ b/engine/lib/relationships.php @@ -184,6 +184,13 @@ */ public function getClassName() { return get_class($this); } + /** + * For a given ID, return the object associated with it. + * This is used by the river functionality primarily. + * This is useful for checking access permissions etc on objects. + */ + public function getObjectFromID($id) { return get_relationship($id); } + // ITERATOR INTERFACE ////////////////////////////////////////////////////////////// /* * This lets an entity's attributes be displayed using foreach as a normal array. -- cgit v1.2.3