Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F445221
DifferentialArcanistProjectFieldSpecification.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
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
();
}
public
function
renderValueForMail
(
$phase
)
{
$diff
=
$this
->
getRevision
()->
loadActiveDiff
();
if
(
$diff
)
{
$phid
=
$diff
->
getArcanistProjectPHID
();
if
(
$phid
)
{
$handle
=
id
(
new
PhabricatorHandleQuery
())
->
setViewer
(
$this
->
getUser
())
->
withPHIDs
(
array
(
$phid
))
->
executeOne
();
return
"ARCANIST PROJECT
\n
"
.
$handle
->
getName
();
}
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, May 4, 1:14 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
65544
Default Alt Text
DifferentialArcanistProjectFieldSpecification.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment