diff options
Diffstat (limited to 'engine/classes/ElggExtender.php')
| -rw-r--r-- | engine/classes/ElggExtender.php | 18 | 
1 files changed, 18 insertions, 0 deletions
| 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 | 
