initializeAttributes() protected method

This is vital to distinguish between metadata and base parameters.
protected initializeAttributes ( ) : void
return void
コード例 #1
0
ファイル: ElggObject.php プロジェクト: thehereward/Elgg
 /**
  * Initialize the attributes array to include the type,
  * title, and description.
  *
  * @return void
  */
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['type'] = "object";
     $this->attributes += self::getExternalAttributes();
     $this->tables_split = 2;
 }
コード例 #2
0
 /**
  * Initialise the attributes array to include the type,
  * title, and description.
  *
  * @return void
  */
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['type'] = "object";
     $this->attributes['title'] = NULL;
     $this->attributes['description'] = NULL;
     $this->attributes['tables_split'] = 2;
 }
コード例 #3
0
ファイル: ElggGroup.php プロジェクト: sephiroth88/Elgg
 /**
  * Sets the type to group.
  *
  * @return void
  */
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['type'] = "group";
     $this->attributes['name'] = null;
     $this->attributes['description'] = null;
     $this->tables_split = 2;
 }
コード例 #4
0
ファイル: ElggSite.php プロジェクト: redvabel/Vabelgg
 /**
  * Initialise the attributes array.
  * This is vital to distinguish between metadata and base parameters.
  *
  * Place your base parameters here.
  *
  * @return void
  */
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['type'] = "site";
     $this->attributes['name'] = NULL;
     $this->attributes['description'] = NULL;
     $this->attributes['url'] = NULL;
     $this->attributes['tables_split'] = 2;
 }
コード例 #5
0
ファイル: ElggUser.php プロジェクト: duanhv/mdg-social
 /**
  * Initialise the attributes array.
  * This is vital to distinguish between metadata and base parameters.
  *
  * Place your base parameters here.
  *
  * @return void
  */
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['type'] = "user";
     $this->attributes['name'] = NULL;
     $this->attributes['username'] = NULL;
     $this->attributes['password'] = NULL;
     $this->attributes['salt'] = NULL;
     $this->attributes['email'] = NULL;
     $this->attributes['language'] = NULL;
     $this->attributes['code'] = NULL;
     $this->attributes['banned'] = "no";
     $this->attributes['admin'] = 'no';
     $this->attributes['tables_split'] = 2;
 }
コード例 #6
0
ファイル: ElggUser.php プロジェクト: sephiroth88/Elgg
 /**
  * Initialize the attributes array.
  * This is vital to distinguish between metadata and base attributes.
  *
  * @return void
  */
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['type'] = "user";
     $this->attributes['name'] = null;
     $this->attributes['username'] = null;
     $this->attributes['password'] = null;
     $this->attributes['salt'] = null;
     $this->attributes['email'] = null;
     $this->attributes['language'] = null;
     $this->attributes['banned'] = "no";
     $this->attributes['admin'] = 'no';
     $this->attributes['prev_last_action'] = null;
     $this->attributes['last_login'] = null;
     $this->attributes['prev_last_login'] = null;
     $this->tables_split = 2;
 }
コード例 #7
0
 /**
  * Initialize the attributes array.
  * This is vital to distinguish between metadata and base attributes.
  *
  * @return void
  */
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['type'] = "site";
     $this->attributes += self::getExternalAttributes();
 }