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