Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F557660
HeraldRuleAdapterField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
631 B
Referenced Files
None
Subscribers
None
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'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 8:42 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
126199
Default Alt Text
HeraldRuleAdapterField.php (631 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment