Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F542363
DiffusionPreCommitRefRepositoryProjectsHeraldField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
694 B
Referenced Files
None
Subscribers
None
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
self
::
STANDARD_PHID_LIST
;
}
protected
function
getDatasource
()
{
return
new
PhabricatorProjectDatasource
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 10:41 AM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
121432
Default Alt Text
DiffusionPreCommitRefRepositoryProjectsHeraldField.php (694 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment