Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91421981
DiffusionPreCommitRefRepositoryHeraldField.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, Nov 10, 23:13
Size
559 B
Mime Type
text/x-php
Expires
Tue, Nov 12, 23:13 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22260963
Attached To
rPH Phabricator
DiffusionPreCommitRefRepositoryHeraldField.php
View Options
<?php
final
class
DiffusionPreCommitRefRepositoryHeraldField
extends
DiffusionPreCommitRefHeraldField
{
const
FIELDCONST
=
'diffusion.pre.ref.repository'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Repository'
);
}
public
function
getHeraldFieldValue
(
$object
)
{
return
$this
->
getAdapter
()->
getHookEngine
()->
getRepository
()->
getPHID
();
}
protected
function
getHeraldFieldStandardType
()
{
return
HeraldField
::
STANDARD_PHID
;
}
protected
function
getDatasource
()
{
return
new
DiffusionRepositoryDatasource
();
}
}
Event Timeline
Log In to Comment