Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2893592
PhabricatorMetaMTAMailSection.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
883 B
Referenced Files
None
Subscribers
None
PhabricatorMetaMTAMailSection.php
View Options
<?php
/**
* Helper for building a rendered section.
*
* @task compose Composition
* @task render Rendering
* @group metamta
*/
final
class
PhabricatorMetaMTAMailSection
extends
Phobject
{
private
$plaintextFragments
=
array
(
)
;
private
$htmlFragments
=
array
(
)
;
public
function
getHTML
(
)
{
return
$this
->
htmlFragments
;
}
public
function
getPlaintext
(
)
{
return
implode
(
"\n"
,
$this
->
plaintextFragments
)
;
}
public
function
addHTMLFragment
(
$fragment
)
{
$this
->
htmlFragments
[
]
=
$fragment
;
return
$this
;
}
public
function
addPlaintextFragment
(
$fragment
)
{
$this
->
plaintextFragments
[
]
=
$fragment
;
return
$this
;
}
public
function
addFragment
(
$fragment
)
{
$this
->
plaintextFragments
[
]
=
$fragment
;
$this
->
htmlFragments
[
]
=
phutil_escape_html_newlines
(
phutil_tag
(
'div'
,
array
(
)
,
$fragment
)
)
;
return
$this
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Jan 19 2025, 18:43 (4 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127525
Default Alt Text
PhabricatorMetaMTAMailSection.php (883 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment