public function getViewer()
public function getViewer()
Return
wild |
public function setViewer($viewer)
public function setViewer($viewer)
Parameters
$viewer |
Return
wild |
public function setContextObject($context_object)
public function setContextObject($context_object)
Parameters
$context_object |
Return
wild |
public function getContextObject()
public function getContextObject()
Return
wild |
public function addRawSection($text)
public function addRawSection($text)
Add a raw block of text to the email. This will be rendered as-is.
Parameters
string | $text | Block of text. |
Return
this |
public function addRemarkupSection($header, $text)
public function addRemarkupSection($header, $text)
Parameters
$header | ||
$text |
Return
wild |
public function addRawPlaintextSection($text)
public function addRawPlaintextSection($text)
Parameters
$text |
Return
wild |
public function addRawHTMLSection($html)
public function addRawHTMLSection($html)
Parameters
$html |
Return
wild |
public function addTextSection($header, $section)
public function addTextSection($header, $section)
Add a block of text with a section header. This is rendered like this:
HEADER Text is indented.
Parameters
string | $header | Header text. |
string | $section | Section text. |
Return
this |
public function addPlaintextSection($header, $text, $indent)
public function addPlaintextSection($header, $text, $indent)
Parameters
$header | ||
$text | ||
$indent |
Return
wild |
public function addHTMLSection($header, $html_fragment)
public function addHTMLSection($header, $html_fragment)
Parameters
$header | ||
$html_fragment |
Return
wild |
public function addLinkSection($header, $link)
public function addLinkSection($header, $link)
Parameters
$header | ||
$link |
Return
wild |
public function addAttachment($attachment)
public function addAttachment($attachment)
Add an attachment.
Parameters
PhabricatorMailAttachment | $attachment | Attachment. |
Return
this |
public function render()
public function render()
Render the email body.
Return
string | Rendered body. |
public function renderHTML()
public function renderHTML()
Return
wild |
public function getAttachments()
public function getAttachments()
Retrieve attachments.
Return
list<PhabricatorMailAttachment> | Attachments. |
private function indent($text)
private function indent($text)
Indent a block of text for rendering under a section heading.
Parameters
string | $text | Text to indent. |
Return
string | Indented text. |
private function newMarkupEngine()
private function newMarkupEngine()
Return
wild |