src/CatLab/Mailer/Models/Mail.php
public function getHtmlOrText()
	{
		if ($template = $this->getTemplate ()) {
			if (!isset ($this->isHTML))
				$this->setIsHTML(true);
			return $template->parse ();
		} else if ($body = $this->getBody ()) {
			$this->setIsHTML(true);
			return $body;
		} else if ($text = $this->getText ()) {
			$this->setIsHTML(false);
			return $text;
		}

		$this->setIsHTML(false);
		return 'No body set.';
	}
public function getHtmlOrText()
	{
		if ($template = $this->getTemplate ()) {
			if (!isset ($this->isHTML))
				$this->setIsHTML(true);
			return $template->parse ();
		} else if ($body = $this->getBody ()) {
			$this->setIsHTML(true);
			return $body;
		} else if ($text = $this->getText ()) {
			$this->setIsHTML(false);
			return $text;
		}

		$this->setIsHTML(false);
		return 'No body set.';
	}
public function getHtmlOrText ( ) { if ( $ template = $ this -> getTemplate ( ) ) { if ( ! isset ( $ this -> isHTML ) ) $ this -> setIsHTML ( true ) ; return $ template -> parse ( ) ; } else if ( $ body = $ this -> getBody ( ) ) { $ this -> setIsHTML ( true ) ; return $ body ; } else if ( $ text = $ this -> getText ( ) ) { $ this -> setIsHTML ( false ) ; return $ text ; } $ this -> setIsHTML ( false ) ; return 'No body set.' ; }
Return the html body or the text string, and fill in the isHTML property
@return string
Return the html body or the text string and fill in the isHTML property