Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93833406
DifferentialDiffRepositoryHeraldField.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, Dec 1, 21:14
Size
617 B
Mime Type
text/x-php
Expires
Tue, Dec 3, 21:14 (2 d)
Engine
blob
Format
Raw Data
Handle
22663349
Attached To
rPH Phabricator
DifferentialDiffRepositoryHeraldField.php
View Options
<?php
final
class
DifferentialDiffRepositoryHeraldField
extends
DifferentialDiffHeraldField
{
const
FIELDCONST
=
'differential.diff.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