Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F83078061
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
Sun, Sep 15, 02:22
Size
759 B
Mime Type
text/x-php
Expires
Tue, Sep 17, 02:22 (2 d)
Engine
blob
Format
Raw Data
Handle
20792615
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