Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F119546736
HeraldContentSourceField.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, Jun 27, 14:40
Size
633 B
Mime Type
text/x-php
Expires
Sun, Jun 29, 14:40 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27041179
Attached To
rPH Phabricator
HeraldContentSourceField.php
View Options
<?php
final
class
HeraldContentSourceField
extends
HeraldField
{
const
FIELDCONST
=
'contentsource'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Content source'
);
}
public
function
getHeraldFieldValue
(
$object
)
{
return
$this
->
getAdapter
()->
getContentSource
()->
getSource
();
}
public
function
getHeraldFieldConditions
()
{
return
array
(
HeraldAdapter
::
CONDITION_IS
,
HeraldAdapter
::
CONDITION_IS_NOT
,
);
}
public
function
getHeraldFieldValueType
(
$condition
)
{
return
HeraldAdapter
::
VALUE_CONTENT_SOURCE
;
}
public
function
supportsObject
(
$object
)
{
return
true
;
}
}
Event Timeline
Log In to Comment