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.
See also: ElggAnnotation
See also: ElggMetadata
Inheritance: extends ElggData
示例#1
0
 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';
 }