aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/classes/ElggData.php20
-rw-r--r--engine/classes/ElggEntity.php18
-rw-r--r--engine/classes/ElggExtender.php18
3 files changed, 37 insertions, 19 deletions
diff --git a/engine/classes/ElggData.php b/engine/classes/ElggData.php
index 551f806f6..4591c499d 100644
--- a/engine/classes/ElggData.php
+++ b/engine/classes/ElggData.php
@@ -92,25 +92,7 @@ abstract class ElggData implements
* @return bool
*/
abstract public function delete();
-
- /**
- * Return the guid of the entity's owner.
- *
- * @return int The owner GUID
- */
- public function getOwner() {
- return $this->owner_guid;
- }
-
- /**
- * Returns the ElggEntity or child object of the owner of the entity.
- *
- * @return ElggEntity The owning user
- */
- public function getOwnerEntity() {
- return get_entity($this->owner_guid);
- }
-
+
/**
* Returns the UNIX epoch time that this entity was created
*
diff --git a/engine/classes/ElggEntity.php b/engine/classes/ElggEntity.php
index 2128a35e9..ea2c52c22 100644
--- a/engine/classes/ElggEntity.php
+++ b/engine/classes/ElggEntity.php
@@ -705,6 +705,24 @@ abstract class ElggEntity extends ElggData implements
}
/**
+ * Return the guid of the entity's owner.
+ *
+ * @return int The owner GUID
+ */
+ public function getOwner() {
+ return $this->owner_guid;
+ }
+
+ /**
+ * Returns the ElggEntity or child object of the owner of the entity.
+ *
+ * @return ElggEntity The owning user
+ */
+ public function getOwnerEntity() {
+ return get_entity($this->owner_guid);
+ }
+
+ /**
* Returns the UNIX epoch time that this entity was last updated
*
* @return int UNIX epoch time
diff --git a/engine/classes/ElggExtender.php b/engine/classes/ElggExtender.php
index 0379cc492..8d0f4bd66 100644
--- a/engine/classes/ElggExtender.php
+++ b/engine/classes/ElggExtender.php
@@ -80,6 +80,24 @@ abstract class ElggExtender extends ElggData
}
/**
+ * Return the guid of the entity's owner.
+ *
+ * @return int The owner GUID
+ */
+ public function getOwner() {
+ return $this->owner_guid;
+ }
+
+ /**
+ * Returns the ElggEntity or child object of the owner of the entity.
+ *
+ * @return ElggEntity The owning user
+ */
+ public function getOwnerEntity() {
+ return get_entity($this->owner_guid);
+ }
+
+ /**
* Return the entity this describes.
*
* @return ElggEntity The enttiy