diff options
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r-- | engine/lib/entities.php | 7 |
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 ////////////////////////////////////////////////////////////// /* |