當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。