Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F95965129
HeraldProjectsField.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
Sat, Dec 21, 03:55
Size
759 B
Mime Type
text/x-php
Expires
Mon, Dec 23, 03:55 (2 d)
Engine
blob
Format
Raw Data
Handle
23090595
Attached To
rPH Phabricator
HeraldProjectsField.php
View Options
<?php
final
class
HeraldProjectsField
extends
HeraldField
{
const
FIELDCONST
=
'projects'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Projects'
);
}
public
function
getFieldGroupKey
()
{
return
HeraldSupportFieldGroup
::
FIELDGROUPKEY
;
}
public
function
supportsObject
(
$object
)
{
return
(
$object
instanceof
PhabricatorProjectInterface
);
}
public
function
getHeraldFieldValue
(
$object
)
{
return
PhabricatorEdgeQuery
::
loadDestinationPHIDs
(
$object
->
getPHID
(),
PhabricatorProjectObjectHasProjectEdgeType
::
EDGECONST
);
}
protected
function
getHeraldFieldStandardType
()
{
return
self
::
STANDARD_PHID_LIST
;
}
protected
function
getDatasource
()
{
return
new
PhabricatorProjectDatasource
();
}
}
Event Timeline
Log In to Comment