Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93099878
DiffusionPreCommitContentRepositoryProjectsHeraldField.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
Tue, Nov 26, 05:21
Size
713 B
Mime Type
text/x-php
Expires
Thu, Nov 28, 05:21 (2 d)
Engine
blob
Format
Raw Data
Handle
22569000
Attached To
rPH Phabricator
DiffusionPreCommitContentRepositoryProjectsHeraldField.php
View Options
<?php
final
class
DiffusionPreCommitContentRepositoryProjectsHeraldField
extends
DiffusionPreCommitContentHeraldField
{
const
FIELDCONST
=
'diffusion.pre.content.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