From 7c8bad89d27b18668622db2a36752653d3f3789c Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sun, 31 Oct 2010 00:33:58 +0000 Subject: Improved initializeAttributes implementations git-svn-id: http://code.elgg.org/elgg/trunk@7159 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/classes/ElggExtender.php | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'engine/classes/ElggExtender.php') diff --git a/engine/classes/ElggExtender.php b/engine/classes/ElggExtender.php index d9a6a52ef..380ba48f5 100644 --- a/engine/classes/ElggExtender.php +++ b/engine/classes/ElggExtender.php @@ -20,6 +20,11 @@ abstract class ElggExtender extends ElggData implements Exportable { + protected function initializeAttributes() { + parent::initializeAttributes(); + + $this->attributes['type'] = ''; + } /** * Returns an attribute @@ -84,20 +89,6 @@ abstract class ElggExtender extends ElggData implements return get_entity($this->entity_guid); } - /** - * Save this data to the appropriate database table. - * - * @return bool - */ - abstract public function save(); - - /** - * Delete this data. - * - * @return bool - */ - abstract public function delete(); - /** * Returns if a user can edit this extended data. * -- cgit v1.2.3