本文整理汇总了PHP中api_AContainer::InitByDbRow方法的典型用法代码示例。如果您正苦于以下问题:PHP api_AContainer::InitByDbRow方法的具体用法?PHP api_AContainer::InitByDbRow怎么用?PHP api_AContainer::InitByDbRow使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类api_AContainer
的用法示例。
在下文中一共展示了api_AContainer::InitByDbRow方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: InitByDbRow
/**
* @param stdClass $oRow
*/
public function InitByDbRow($oRow)
{
parent::InitByDbRow($oRow);
$this->InitBeforeChange();
$this->FlushObsolete();
}
示例2: InitByDbRow
/**
* @param stdClass $oRow
*/
public function InitByDbRow($oRow)
{
parent::InitByDbRow($oRow);
if (!$this->ReadOnly && (EContactType::Global_ === $this->Type || EContactType::GlobalAccounts === $this->Type ||
EContactType::GlobalMailingList === $this->Type))
{
$this->ReadOnly = true;
}
if (EContactType::GlobalAccounts === $this->Type || EContactType::GlobalMailingList === $this->Type)
{
$this->Global = true;
}
}
示例3: InitByDbRow
/**
* @param stdClass $oRow
*/
public function InitByDbRow($oRow)
{
parent::InitByDbRow($oRow);
if (!$this->Domain->IsDefaultDomain) {
$this->IncomingMailProtocol = $this->Domain->IncomingMailProtocol;
$this->IncomingMailServer = $this->Domain->IncomingMailServer;
$this->IncomingMailPort = $this->Domain->IncomingMailPort;
$this->IncomingMailUseSSL = $this->Domain->IncomingMailUseSSL;
$this->OutgoingMailServer = $this->Domain->OutgoingMailServer;
$this->OutgoingMailPort = $this->Domain->OutgoingMailPort;
$this->OutgoingMailAuth = $this->Domain->OutgoingMailAuth;
$this->OutgoingMailUseSSL = $this->Domain->OutgoingMailUseSSL;
$this->OutgoingSendingMethod = $this->Domain->OutgoingSendingMethod;
if (ESMTPAuthType::AuthSpecified === $this->OutgoingMailAuth) {
$this->OutgoingMailLogin = $this->Domain->OutgoingMailLogin;
$this->OutgoingMailPassword = $this->Domain->OutgoingMailPassword;
}
}
if ($this->IsMailingList) {
$this->IdUser = 0;
}
if ($this->IsInternal) {
if ((int) CApi::GetConf('labs.unlim-quota-limit-size-in-kb', 104857600) <= $this->StorageQuota) {
$this->StorageQuota = 0;
$this->FlushObsolete('StorageQuota');
}
$oApiUsersManager = CApi::Manager('users');
if ($oApiUsersManager) {
$this->StorageUsedSpace = $oApiUsersManager->GetAccountUsedSpaceInKBytesByEmail($this->Email);
$this->FlushObsolete('StorageUsedSpace');
}
}
}