當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ElggObject::initializeAttributes方法代碼示例

本文整理匯總了PHP中ElggObject::initializeAttributes方法的典型用法代碼示例。如果您正苦於以下問題:PHP ElggObject::initializeAttributes方法的具體用法?PHP ElggObject::initializeAttributes怎麽用?PHP ElggObject::initializeAttributes使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ElggObject的用法示例。


在下文中一共展示了ElggObject::initializeAttributes方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: initializeAttributes

 /**
  * 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");
 }
開發者ID:lorea,項目名稱:Hydra-dev,代碼行數:14,代碼來源:UserSupportFAQ.php

示例2: initializeAttributes

 /**
  * Set subtype to 'plugin'
  *
  * @return void
  */
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['subtype'] = "plugin";
     // plugins must be public.
     $this->access_id = ACCESS_PUBLIC;
 }
開發者ID:bhargavgarlapati,項目名稱:Elgg,代碼行數:12,代碼來源:ElggPlugin.php

示例3: initializeAttributes

 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['subtype'] = 'hjfield';
     $this->attributes['owner_guid'] = elgg_get_site_entity()->guid;
     $this->attributes['access_id'] = ACCESS_PUBLIC;
 }
開發者ID:amcfarlane1251,項目名稱:ongarde,代碼行數:7,代碼來源:hjField.php

示例4: initializeAttributes

 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->siteDomain = get_site_domain($CONFIG->site_guid);
     $this->site = elgg_get_site_entity();
     $this->approvedDomains = ['forces.gc.ca', 'test.gc.ca'];
 }
開發者ID:amcfarlane1251,項目名稱:ongarde,代碼行數:7,代碼來源:UserManagement.php

示例5: initializeAttributes

 function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->userGuid = $this->getUserGuid();
     $this->user = $this->getUser();
     $this->userName = $this->getUserName();
 }
開發者ID:amcfarlane1251,項目名稱:ongarde,代碼行數:7,代碼來源:NetworkWidget.php

示例6: initializeAttributes

 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['access_id'] = ACCESS_PUBLIC;
     $this->attributes['owner_guid'] = elgg_get_site_entity()->getGUID();
     $this->attributes['container_guid'] = elgg_get_site_entity()->getGUID();
 }
開發者ID:socialweb,項目名稱:PiGo,代碼行數:7,代碼來源:ProfileManagerCustomField.php

示例7: initializeAttributes

 /**
  * Initialize base attributes
  *
  * @see ElggObject::initializeAttributes()
  *
  * @return void
  */
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes["subtype"] = self::SUBTYPE;
     $this->attributes["access_id"] = ACCESS_PRIVATE;
     $this->status = self::OPEN;
 }
開發者ID:lorea,項目名稱:Hydra-dev,代碼行數:14,代碼來源:UserSupportTicket.php

示例8: initializeAttributes

 protected function initializeAttributes()
 {
     global $CONFIG;
     parent::initializeAttributes();
     $this->attributes['access_id'] = ACCESS_PUBLIC;
     $this->attributes['owner_guid'] = $CONFIG->site_guid;
     $this->attributes['container_guid'] = $CONFIG->site_guid;
 }
開發者ID:portokallidis,項目名稱:Metamorphosis-Meducator,代碼行數:8,代碼來源:ProfileManagerCustomField.php

示例9: initializeAttributes

 /**
  * (non-PHPdoc)
  * @see ElggObject::initializeAttributes()
  */
 public function initializeAttributes()
 {
     parent::initializeAttributes();
     $site = elgg_get_site_entity();
     $this->attributes['subtype'] = self::SUBTYPE;
     $this->attributes['owner_guid'] = $site->getGUID();
     $this->attributes['access_id'] = ACCESS_LOGGED_IN;
     $this->order = time();
 }
開發者ID:coldtrick,項目名稱:wizard,代碼行數:13,代碼來源:WizardStep.php

示例10: initializeAttributes

 /**
  * overrule / extend some parent functions
  * 
  * @return void
  * 
  * @see ElggObject::initializeAttributes()
  */
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $site = elgg_get_site_entity();
     $this->attributes["subtype"] = self::SUBTYPE;
     $this->attributes["access_id"] = ACCESS_PUBLIC;
     $this->attributes["owner_guid"] = $site->getGUID();
     $this->attributes["container_guid"] = $site->getGUID();
 }
開發者ID:lorea,項目名稱:Hydra-dev,代碼行數:16,代碼來源:APIApplication.php

示例11: initializeAttributes

 /**
  * Initializes attributes for this class
  *
  * @return void
  *
  * @see ElggObject::initializeAttributes()
  */
 public function initializeAttributes()
 {
     parent::initializeAttributes();
     $site = elgg_get_site_entity();
     $this->attributes['subtype'] = self::SUBTYPE;
     $this->attributes['owner_guid'] = $site->getGUID();
     $this->attributes['container_guid'] = $site->getGUID();
     $this->attributes['access_id'] = ACCESS_PRIVATE;
 }
開發者ID:coldtrick,項目名稱:newsletter,代碼行數:16,代碼來源:NewsletterSubscription.php

示例12: initializeAttributes

 /**
  * Set subtype to upgrade
  *
  * @return null
  */
 public function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['subtype'] = 'elgg_upgrade';
     // unowned
     $this->attributes['container_guid'] = 0;
     $this->attributes['owner_guid'] = 0;
     $this->is_completed = 0;
 }
開發者ID:elgg,項目名稱:elgg,代碼行數:14,代碼來源:ElggUpgrade.php

示例13: initializeAttributes

 /**
  * Set subtype to widget.
  *
  * @return void
  */
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['subtype'] = "widget";
 }
開發者ID:duanhv,項目名稱:mdg-social,代碼行數:10,代碼來源:ElggWidget.php

示例14: initializeAttributes

 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['subtype'] = "tidypics_batch";
 }
開發者ID:juho-jaakkola,項目名稱:tidypics,代碼行數:5,代碼來源:TidypicsBatch.php

示例15: initializeAttributes

 /**
  * @see ElggObject::initializeAttributes()
  */
 protected function initializeAttributes()
 {
     parent::initializeAttributes();
     $this->attributes['subtype'] = "remote_plugin_project";
     $this->attributes['access_id'] = ACCESS_PUBLIC;
 }
開發者ID:socialweb,項目名稱:PiGo,代碼行數:9,代碼來源:ElggRemotePluginProject.php


注:本文中的ElggObject::initializeAttributes方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。