Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93609283
DiffusionPreCommitRefRepositoryProjectsHeraldField.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, Nov 30, 03:27
Size
701 B
Mime Type
text/x-php
Expires
Mon, Dec 2, 03:27 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22675462
Attached To
rPH Phabricator
DiffusionPreCommitRefRepositoryProjectsHeraldField.php
View Options
<?php
final
class
DiffusionPreCommitRefRepositoryProjectsHeraldField
extends
DiffusionPreCommitRefHeraldField
{
const
FIELDCONST
=
'diffusion.pre.ref.repository.projects'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Repository projects'
);
}
public
function
getHeraldFieldValue
(
$object
)
{
return
PhabricatorEdgeQuery
::
loadDestinationPHIDs
(
$this
->
getAdapter
()->
getHookEngine
()->
getRepository
()->
getPHID
(),
PhabricatorProjectObjectHasProjectEdgeType
::
EDGECONST
);
}
protected
function
getHeraldFieldStandardType
()
{
return
HeraldField
::
STANDARD_PHID_LIST
;
}
protected
function
getDatasource
()
{
return
new
PhabricatorProjectDatasource
();
}
}
Event Timeline
Log In to Comment