本文整理汇总了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");
}
示例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;
}
示例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;
}
示例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'];
}
示例5: initializeAttributes
function initializeAttributes()
{
parent::initializeAttributes();
$this->userGuid = $this->getUserGuid();
$this->user = $this->getUser();
$this->userName = $this->getUserName();
}
示例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();
}
示例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;
}
示例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;
}
示例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();
}
示例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();
}
示例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;
}
示例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;
}
示例13: initializeAttributes
/**
* Set subtype to widget.
*
* @return void
*/
protected function initializeAttributes()
{
parent::initializeAttributes();
$this->attributes['subtype'] = "widget";
}
示例14: initializeAttributes
protected function initializeAttributes()
{
parent::initializeAttributes();
$this->attributes['subtype'] = "tidypics_batch";
}
示例15: initializeAttributes
/**
* @see ElggObject::initializeAttributes()
*/
protected function initializeAttributes()
{
parent::initializeAttributes();
$this->attributes['subtype'] = "remote_plugin_project";
$this->attributes['access_id'] = ACCESS_PUBLIC;
}