Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82342014
DifferentialRevisionRepositoryHeraldField.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, Sep 10, 21:03
Size
629 B
Mime Type
text/x-php
Expires
Thu, Sep 12, 21:03 (2 d)
Engine
blob
Format
Raw Data
Handle
20686278
Attached To
rPH Phabricator
DifferentialRevisionRepositoryHeraldField.php
View Options
<?php
final
class
DifferentialRevisionRepositoryHeraldField
extends
DifferentialRevisionHeraldField
{
const
FIELDCONST
=
'differential.revision.repository'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Repository'
);
}
public
function
getHeraldFieldValue
(
$object
)
{
$repository
=
$this
->
getAdapter
()->
loadRepository
();
if
(!
$repository
)
{
return
null
;
}
return
$repository
->
getPHID
();
}
protected
function
getHeraldFieldStandardType
()
{
return
self
::
STANDARD_PHID_NULLABLE
;
}
protected
function
getDatasource
()
{
return
new
DiffusionRepositoryDatasource
();
}
}
Event Timeline
Log In to Comment