Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93545660
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
Fri, Nov 29, 15:11
Size
842 B
Mime Type
text/x-php
Expires
Sun, Dec 1, 15:11 (2 d)
Engine
blob
Format
Raw Data
Handle
22663271
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 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
();
}
}
Event Timeline
Log In to Comment