Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98595856
PhabricatorMetaMTAApplicationEmailHeraldField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Jan 14, 17:03
Size
748 B
Mime Type
text/x-php
Expires
Thu, Jan 16, 17:03 (2 d)
Engine
blob
Format
Raw Data
Handle
23601417
Attached To
rPH Phabricator
PhabricatorMetaMTAApplicationEmailHeraldField.php
View Options
<?php
final
class
PhabricatorMetaMTAApplicationEmailHeraldField
extends
HeraldField
{
const
FIELDCONST
=
'application-email'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Receiving email address'
);
}
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
();
}
}
Event Timeline
Log In to Comment