Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F473386
PhabricatorMetaMTAApplicationEmailHeraldField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
939 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 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
getHeraldFieldStandardConditions
()
{
return
self
::
STANDARD_LIST
;
}
public
function
getHeraldFieldValueType
(
$condition
)
{
switch
(
$condition
)
{
case
HeraldAdapter
::
CONDITION_EXISTS
:
case
HeraldAdapter
::
CONDITION_NOT_EXISTS
:
return
HeraldAdapter
::
VALUE_NONE
;
default
:
return
HeraldAdapter
::
VALUE_APPLICATION_EMAIL
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 6, 5:59 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
83562
Default Alt Text
PhabricatorMetaMTAApplicationEmailHeraldField.php (939 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment