aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-29 13:51:05 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-29 13:51:05 +0000
commit679d9a720f34be0e860acbd0e5334526aadb304b (patch)
treef7174ec2ce54451657da56f74f268d0174478b05 /engine
parent924e9af0b1b4f81f98b9575d76e36afdb7be9ab0 (diff)
downloadelgg-679d9a720f34be0e860acbd0e5334526aadb304b.tar.gz
elgg-679d9a720f34be0e860acbd0e5334526aadb304b.tar.bz2
Added getEntity() to ElggExtender
git-svn-id: https://code.elgg.org/elgg/trunk@556 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/extender.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/engine/lib/extender.php b/engine/lib/extender.php
index 49db9702a..c2d4bcc96 100644
--- a/engine/lib/extender.php
+++ b/engine/lib/extender.php
@@ -82,6 +82,15 @@
{
return get_user($this->owner_guid);
}
+
+ /**
+ * Returns the entity this is attached to
+ *
+ * @return ElggEntity The enttiy
+ */
+ public function getEntity() {
+ return get_entity($this->entity_guid);
+ }
/**
* Save this data to the appropriate database table.