Extenders allow you to attach extended information to an
ElggEntity. Core supports two: ElggAnnotation, ElggMetadata,
and ElggRelationship
Saving the extender data to database is handled by the child class.
protected function initializeAttributes() { parent::initializeAttributes(); $this->attributes['type'] = "metadata"; }
/** * (non-PHPdoc) * * @see ElggData::initializeAttributes() * * @return void */ protected function initializeAttributes() { parent::initializeAttributes(); $this->attributes['type'] = 'annotation'; }