Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F545885
DiffusionPreCommitContentRepositoryProjectsHeraldField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
713 B
Referenced Files
None
Subscribers
None
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
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 1:02 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
121469
Default Alt Text
DiffusionPreCommitContentRepositoryProjectsHeraldField.php (713 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment