Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91086463
DifferentialArcanistProjectField.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
Thu, Nov 7, 18:22
Size
917 B
Mime Type
text/x-php
Expires
Sat, Nov 9, 18:22 (2 d)
Engine
blob
Format
Raw Data
Handle
22152317
Attached To
rPH Phabricator
DifferentialArcanistProjectField.php
View Options
<?php
final
class
DifferentialArcanistProjectField
extends
DifferentialCustomField
{
public
function
getFieldKey
()
{
return
'differential:arcanist-project'
;
}
public
function
getFieldName
()
{
return
pht
(
'Arcanist Project'
);
}
public
function
getFieldDescription
()
{
return
pht
(
'Shows arcanist project name.'
);
}
public
function
shouldAppearInPropertyView
()
{
return
true
;
}
public
function
renderPropertyViewLabel
()
{
return
$this
->
getFieldName
();
}
public
function
getRequiredHandlePHIDsForPropertyView
()
{
$phid
=
$this
->
getArcanistProjectPHID
();
if
(
$phid
)
{
return
array
(
$phid
);
}
return
array
();
}
public
function
renderPropertyViewValue
(
array
$handles
)
{
return
$this
->
renderHandleList
(
$handles
);
}
private
function
getArcanistProjectPHID
()
{
return
$this
->
getObject
()->
getActiveDiff
()->
getArcanistProjectPHID
();
}
}
Event Timeline
Log In to Comment