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