Add alias support (domains)

This commit is contained in:
RainLoop Team 2016-06-11 01:20:09 +03:00
parent a1d829c697
commit 28a125426a
26 changed files with 1014 additions and 92 deletions

View file

@ -93,6 +93,11 @@ class Domain
*/
private $sWhiteList;
/**
* @var string
*/
private $sAliasName;
/**
* @param string $sName
* @param string $sIncHost
@ -138,6 +143,7 @@ class Domain
$this->bSieveAllowRaw = false;
$this->sWhiteList = \trim($sWhiteList);
$this->sAliasName = '';
}
/**
@ -510,6 +516,25 @@ class Domain
return $this->sWhiteList;
}
/**
* @return string
*/
public function AliasName()
{
return $this->sAliasName;
}
/**
* @param string $sAliasName
* @return self
*/
public function SetAliasName($sAliasName)
{
$this->sAliasName = $sAliasName;
return $this;
}
/**
* @param string $sEmail
* @param string $sLogin = ''
@ -558,7 +583,8 @@ class Domain
'OutShortLogin' => $this->OutShortLogin(),
'OutAuth' => $this->OutAuth(),
'OutUsePhpMail' => $this->OutUsePhpMail(),
'WhiteList' => $this->WhiteList()
'WhiteList' => $this->WhiteList(),
'AliasName' => $this->AliasName()
);
}
}