MailSo fixes

This commit is contained in:
RainLoop Team 2014-08-19 16:39:27 +04:00
parent 860bf3be74
commit eb11eaa096
4 changed files with 83 additions and 6 deletions

View file

@ -64,4 +64,32 @@ class Response
{
return new self();
}
/**
* @param string $aList
*
* @return string
*/
private function recToLine($aList)
{
$aResult = array();
if (\is_array($aList))
{
foreach ($aList as $mItem)
{
$aResult[] = \is_array($mItem) ? '('.$this->recToLine($mItem).')' : (string) $mItem;
}
}
return \implode(' ', $aResult);
}
/**
* @return string
*/
public function ToLine()
{
return $this->recToLine($this->ResponseList);
}
}