Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96190936
HeraldRuleAdapterField.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
Mon, Dec 23, 14:50
Size
631 B
Mime Type
text/x-php
Expires
Wed, Dec 25, 14:50 (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
23133724
Attached To
rPH Phabricator
HeraldRuleAdapterField.php
View Options
<?php
final
class
HeraldRuleAdapterField
extends
HeraldRuleField
{
const
FIELDCONST
=
'adapter'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Content type'
);
}
public
function
getHeraldFieldValue
(
$object
)
{
return
$object
->
getContentType
();
}
protected
function
getHeraldFieldStandardType
()
{
return
self
::
STANDARD_PHID
;
}
protected
function
getDatasource
()
{
return
new
HeraldAdapterDatasource
();
}
protected
function
getDatasourceValueMap
()
{
$adapters
=
HeraldAdapter
::
getAllAdapters
();
return
mpull
(
$adapters
,
'getAdapterContentName'
,
'getAdapterContentType'
);
}
}
Event Timeline
Log In to Comment