Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F2084119
ShowRepositoryInRevisionList.php
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
avivey
Dec 7 2016, 12:45 AM
2016-12-07 00:45:34 (UTC+0)
Size
558 B
Referenced Files
None
Subscribers
None
ShowRepositoryInRevisionList.php
View Options
<?php
final
class
ShowRepositoryInRevisionList
extends
DifferentialCustomField
{
private
$value
;
public
function
getFieldKey
()
{
return
'hack:repo'
;
}
public
function
readValueFromObject
(
PhabricatorCustomFieldInterface
$revision
)
{
$this
->
value
=
$revision
->
getRepositoryPHID
();
}
public
function
shouldAppearInListView
()
{
return
true
;
}
public
function
renderOnListItem
(
PHUIObjectItemView
$view
)
{
if
(
$this
->
value
)
{
$view
->
addAttribute
(
$this
->
getViewer
()->
renderHandle
(
$this
->
value
));
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
360828
Default Alt Text
ShowRepositoryInRevisionList.php (558 B)
Attached To
Mode
P2022 ShowRepositoryInRevisionList.php
Attached
Detach File
Event Timeline
Log In to Comment