本文整理汇总了PHP中api_AContainer::InitBeforeChange方法的典型用法代码示例。如果您正苦于以下问题:PHP api_AContainer::InitBeforeChange方法的具体用法?PHP api_AContainer::InitBeforeChange怎么用?PHP api_AContainer::InitBeforeChange使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类api_AContainer
的用法示例。
在下文中一共展示了api_AContainer::InitBeforeChange方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: InitBeforeChange
/**
* @return bool
*/
public function InitBeforeChange()
{
parent::InitBeforeChange();
if (0 === strlen($this->IdGroupStr)) {
$this->IdGroupStr = $this->GenerateStrId();
}
return true;
}
示例2: InitBeforeChange
/**
* @return bool
*/
public function InitBeforeChange()
{
parent::InitBeforeChange();
if (0 < $this->IdTenant) {
$this->OverrideSettings = true;
}
if (!$this->OverrideSettings && !$this->IsDefaultDomain) {
/* @var $oApiDomainsManager CApiDomainsManager */
$oApiDomainsManager = CApi::Manager('domains');
$oDefDomain = $oApiDomainsManager->GetDefaultDomain();
$aOverridenSettingsMap = $this->GetOverridenSettingsMap();
foreach ($aOverridenSettingsMap as $sName) {
$this->{$sName} = $oDefDomain->{$sName};
}
}
return true;
}
示例3: InitBeforeChange
/**
* @return bool
*/
public function InitBeforeChange()
{
parent::InitBeforeChange();
if (0 === strlen($this->IdContactStr) &&
((is_int($this->IdContact) && 0 < $this->IdContact) ||
(is_string($this->IdContact) && 0 < strlen($this->IdContact)))
)
{
$this->IdContactStr = $this->GenerateStrId();
}
if (!$this->__LOCK_DATE_MODIFIED__)
{
$this->DateModified = time();
}
switch ((int) $this->PrimaryEmail)
{
//ReadOnly
case EPrimaryEmailType::Home:
$this->ViewEmail = (string) $this->HomeEmail;
break;
case EPrimaryEmailType::Business:
$this->ViewEmail = (string) $this->BusinessEmail;
break;
case EPrimaryEmailType::Other:
$this->ViewEmail = (string) $this->OtherEmail;
break;
}
return true;
}
示例4: InitBeforeChange
public function InitBeforeChange()
{
parent::InitBeforeChange();
$bObsolete = null !== $this->GetObsoleteValue('StorageQuota');
$this->StorageQuota = 0 === $this->StorageQuota ? (int) CApi::GetConf('labs.unlim-quota-limit-size-in-kb', 104857600) : $this->StorageQuota;
if (!$bObsolete) {
$this->FlushObsolete('StorageQuota');
}
}