当前位置: 首页>>代码示例>>PHP>>正文


PHP api_AContainer::initBeforeChange方法代码示例

本文整理汇总了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;
 }
开发者ID:pkdevboxy,项目名称:webmail-lite,代码行数:11,代码来源:group.php

示例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;
 }
开发者ID:pkdevboxy,项目名称:webmail-lite,代码行数:20,代码来源:domain.php

示例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;
 }
开发者ID:Git-Host,项目名称:email,代码行数:26,代码来源:contact.php

示例4: initBeforeChange

 /**
  * Initialize account object before it's changing. Function with the same name is used for other objects in a unified container **api_AContainer**.
  */
 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');
     }
 }
开发者ID:Git-Host,项目名称:email,代码行数:12,代码来源:account.php


注:本文中的api_AContainer::initBeforeChange方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。