Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F115732292
DifferentialArcanistProjectFieldSpecification.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
Mon, Jun 2, 16:07
Size
827 B
Mime Type
text/x-php
Expires
Wed, Jun 4, 16:07 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
26510789
Attached To
rPH Phabricator
DifferentialArcanistProjectFieldSpecification.php
View Options
<?php
final
class
DifferentialArcanistProjectFieldSpecification
extends
DifferentialFieldSpecification
{
public
function
shouldAppearOnRevisionView
()
{
return
true
;
}
public
function
getRequiredHandlePHIDs
()
{
$arcanist_phid
=
$this
->
getArcanistProjectPHID
();
if
(!
$arcanist_phid
)
{
return
array
();
}
return
array
(
$arcanist_phid
);
}
public
function
renderLabelForRevisionView
()
{
return
'Arcanist Project:'
;
}
public
function
renderValueForRevisionView
()
{
$arcanist_phid
=
$this
->
getArcanistProjectPHID
();
if
(!
$arcanist_phid
)
{
return
null
;
}
$handle
=
$this
->
getHandle
(
$arcanist_phid
);
return
$handle
->
getName
();
}
private
function
getArcanistProjectPHID
()
{
$diff
=
$this
->
getDiff
();
return
$diff
->
getArcanistProjectPHID
();
}
}
Event Timeline
Log In to Comment