当前位置: 首页>>代码示例>>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;未经允许,请勿转载。