From 09f229f4664ed51dfd06d545db2f32bca3b9acf2 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sat, 30 Oct 2010 23:53:57 +0000 Subject: Refs #2597: Pulled Loggable functions with identical implementations into ElggData git-svn-id: http://code.elgg.org/elgg/trunk@7155 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/classes/ElggData.php | 26 ++++++++++++++++++++++++++ engine/classes/ElggEntity.php | 21 +-------------------- engine/classes/ElggExtender.php | 21 +-------------------- engine/classes/ElggRelationship.php | 21 +-------------------- 4 files changed, 29 insertions(+), 60 deletions(-) (limited to 'engine/classes') diff --git a/engine/classes/ElggData.php b/engine/classes/ElggData.php index f200a7c21..a206964fa 100644 --- a/engine/classes/ElggData.php +++ b/engine/classes/ElggData.php @@ -1,8 +1,34 @@ owner_guid; + } + /** * The main attributes of an entity. * Holds attributes to save to database diff --git a/engine/classes/ElggEntity.php b/engine/classes/ElggEntity.php index 56ac96f8f..9b6b04899 100644 --- a/engine/classes/ElggEntity.php +++ b/engine/classes/ElggEntity.php @@ -30,8 +30,7 @@ abstract class ElggEntity extends ElggData implements Notable, // Calendar interface Locatable, // Geocoding interface Exportable, // Allow export of data - Importable, // Allow import of data - Loggable // Can events related to this object class be logged + Importable // Allow import of data { /** @@ -1302,15 +1301,6 @@ abstract class ElggEntity extends ElggData implements return $this->getGUID(); } - /** - * Return the class name of the object. - * - * @return string - */ - 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. @@ -1328,15 +1318,6 @@ abstract class ElggEntity extends ElggData implements return get_entity($id); } - /** - * Returns the GUID of the owner of this entity. - * - * @return int Owner guid - */ - public function getObjectOwnerGUID() { - return $this->owner_guid; - } - /** * Returns tags for this entity. * diff --git a/engine/classes/ElggExtender.php b/engine/classes/ElggExtender.php index d6ea14ba8..ca92dca74 100644 --- a/engine/classes/ElggExtender.php +++ b/engine/classes/ElggExtender.php @@ -18,8 +18,7 @@ * @see ElggMetadata */ abstract class ElggExtender extends ElggData implements - Exportable, - Loggable // Can events related to this object class be logged + Exportable { /** @@ -186,24 +185,6 @@ abstract class ElggExtender extends ElggData implements return $this->id; } - /** - * Return the class name of the object. - * - * @return string - */ - public function getClassName() { - return get_class($this); - } - - /** - * Return the GUID of the owner of this object. - * - * @return int - */ - public function getObjectOwnerGUID() { - return $this->owner_guid; - } - /** * Return a type of extension. * diff --git a/engine/classes/ElggRelationship.php b/engine/classes/ElggRelationship.php index e2b0e4e13..4dcdb6297 100644 --- a/engine/classes/ElggRelationship.php +++ b/engine/classes/ElggRelationship.php @@ -7,8 +7,7 @@ */ class ElggRelationship extends ElggData implements Importable, - Exportable, - Loggable // Can events related to this object class be logged + Exportable { /** @@ -190,15 +189,6 @@ class ElggRelationship extends ElggData implements return $this->id; } - /** - * Return the class name of the object. - * - * @return string - */ - 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. @@ -212,15 +202,6 @@ class ElggRelationship extends ElggData implements return get_relationship($id); } - /** - * Return the GUID of the owner of this object. - * - * @return int - */ - public function getObjectOwnerGUID() { - return $this->owner_guid; - } - /** * Return a type of the object - eg. object, group, user, relationship, metadata, annotation etc * -- cgit v1.2.3