aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-23 16:31:53 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-23 16:31:53 +0000
commitd98c0d4c6c56d015958bdc88baa00d6ca6bcb70d (patch)
tree3aa101d7d1364ec717e22225313dd0663018a433 /engine/lib/entities.php
parente231b7079e97f4c4a7d48670a63176f3b62158b9 (diff)
downloadelgg-d98c0d4c6c56d015958bdc88baa00d6ca6bcb70d.tar.gz
elgg-d98c0d4c6c56d015958bdc88baa00d6ca6bcb70d.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Support for river entries git-svn-id: https://code.elgg.org/elgg/trunk@701 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r--engine/lib/entities.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 674a6a8fe..d3edb2ef3 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -549,6 +549,13 @@
* Return the class name of the object.
*/
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_entity($id); }
// ITERATOR INTERFACE //////////////////////////////////////////////////////////////
/*