Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F549784
PhabricatorMetaMTAApplicationEmailHeraldField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
842 B
Referenced Files
None
Subscribers
None
PhabricatorMetaMTAApplicationEmailHeraldField.php
View Options
<?php
final
class
PhabricatorMetaMTAApplicationEmailHeraldField
extends
HeraldField
{
const
FIELDCONST
=
'application-email'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Receiving email addresses'
);
}
public
function
getFieldGroupKey
()
{
return
HeraldEditFieldGroup
::
FIELDGROUPKEY
;
}
public
function
supportsObject
(
$object
)
{
return
$this
->
getAdapter
()->
supportsApplicationEmail
();
}
public
function
getHeraldFieldValue
(
$object
)
{
$phids
=
array
();
$email
=
$this
->
getAdapter
()->
getApplicationEmail
();
if
(
$email
)
{
$phids
[]
=
$email
->
getPHID
();
}
return
$phids
;
}
protected
function
getHeraldFieldStandardType
()
{
return
self
::
STANDARD_PHID_LIST
;
}
protected
function
getDatasource
()
{
return
new
PhabricatorMetaMTAApplicationEmailDatasource
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 2:18 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
120674
Default Alt Text
PhabricatorMetaMTAApplicationEmailHeraldField.php (842 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment