Author: Chris Corbyn
Inheritance: extends Swift_Mime_SimpleMimeEntity
コード例 #1
0
 public function getPlain()
 {
     if (isset($this->plainMimePart)) {
         return $this->plainMimePart->getBody();
     } else {
         return '';
     }
 }
コード例 #2
0
ファイル: SimpleMessage.php プロジェクト: luoshulin/falcon
 /**
  * Write this message to a {@link Swift_InputByteStream}.
  *
  * @param Swift_InputByteStream $is
  */
 public function toByteStream(Swift_InputByteStream $is)
 {
     if (count($children = $this->getChildren()) > 0 && $this->getBody() != '') {
         $this->setChildren(array_merge(array($this->_becomeMimePart()), $children));
         parent::toByteStream($is);
         $this->setChildren($children);
     } else {
         parent::toByteStream($is);
     }
 }