ElggObject::initializeAttributes PHP 메소드

initializeAttributes() 보호된 메소드

Initialize the attributes array to include the type, title, and description.
protected initializeAttributes ( ) : void
리턴 void
    protected function initializeAttributes()
    {
        parent::initializeAttributes();
        $this->attributes['type'] = "object";
        $this->attributes += self::getExternalAttributes();
    }

Usage Example

예제 #1
0
 /**
  * Initialize base attributes
  *
  * @see ElggObject::initializeAttributes()
  *
  * @return void
  */
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes["subtype"] = self::SUBTYPE;
     $this->attributes["owner_guid"] = elgg_get_config("site_guid");
     $this->attributes["container_guid"] = elgg_get_config("site_guid");
 }
All Usage Examples Of ElggObject::initializeAttributes