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