本文整理匯總了PHP中ElggFile::initializeAttributes方法的典型用法代碼示例。如果您正苦於以下問題:PHP ElggFile::initializeAttributes方法的具體用法?PHP ElggFile::initializeAttributes怎麽用?PHP ElggFile::initializeAttributes使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ElggFile
的用法示例。
在下文中一共展示了ElggFile::initializeAttributes方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: initializeAttributes
protected function initializeAttributes()
{
global $IZAPSETTINGS;
parent::initializeAttributes();
$this->attributes['subtype'] = 'izap_videos';
$this->IZAPSETTINGS = $IZAPSETTINGS;
}
示例2: initializeAttributes
/**
* (non-PHPdoc)
* @see ElggObject::initializeAttributes()
*/
protected function initializeAttributes()
{
parent::initializeAttributes();
$this->attributes['subtype'] = self::SUBTYPE;
$this->attributes['owner_guid'] = elgg_get_site_entity()->guid;
$this->attributes['container_guid'] = elgg_get_site_entity()->guid;
$this->attributes['access_id'] = ACCESS_PUBLIC;
}
示例3: initializeAttributes
protected function initializeAttributes()
{
parent::initializeAttributes();
$this->attributes['subtype'] = "image";
}
示例4: initializeAttributes
protected function initializeAttributes()
{
parent::initializeAttributes();
$this->attributes['subtype'] = self::SUBTYPE;
}
示例5: initializeAttributes
protected function initializeAttributes()
{
parent::initializeAttributes();
$this->attributes['subtype'] = 'showcaseimg';
$this->attributes['access_id'] = ACCESS_PRIVATE;
}
示例6: initializeAttributes
/**
Initialise the attributes array to include the type,subtype
* title, and description.
*
* @return void
*/
protected function initializeAttributes()
{
parent::initializeAttributes();
$this->attributes['subtype'] = get_class($this);
}