aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/ElggExtender.php
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-31 00:33:58 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-31 00:33:58 +0000
commit7c8bad89d27b18668622db2a36752653d3f3789c (patch)
tree2732b6296a84cb086f7551e3bf7c205daef8312d /engine/classes/ElggExtender.php
parentd428c6179cb91fa6c6a6ca739081dfbf79a418b0 (diff)
downloadelgg-7c8bad89d27b18668622db2a36752653d3f3789c.tar.gz
elgg-7c8bad89d27b18668622db2a36752653d3f3789c.tar.bz2
Improved initializeAttributes implementations
git-svn-id: http://code.elgg.org/elgg/trunk@7159 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/classes/ElggExtender.php')
-rw-r--r--engine/classes/ElggExtender.php19
1 files changed, 5 insertions, 14 deletions
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
@@ -85,20 +90,6 @@ abstract class ElggExtender extends ElggData implements
}
/**
- * 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.
*
* @param int $user_guid The GUID of the user (defaults to currently logged in user)