Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F568309
DifferentialManiphestTasksField.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
DifferentialManiphestTasksField.php
View Options
<?php
final
class
DifferentialManiphestTasksField
extends
DifferentialCoreCustomField
{
public
function
getFieldKey
()
{
return
'differential:maniphest-tasks'
;
}
public
function
canDisableField
()
{
return
false
;
}
public
function
getFieldName
()
{
return
pht
(
'Maniphest Tasks'
);
}
public
function
getFieldDescription
()
{
return
pht
(
'Lists associated tasks.'
);
}
public
function
shouldAppearInPropertyView
()
{
return
true
;
}
public
function
renderPropertyViewLabel
()
{
return
$this
->
getFieldName
();
}
protected
function
readValueFromRevision
(
DifferentialRevision
$revision
)
{
if
(!
$revision
->
getPHID
())
{
return
array
();
}
return
PhabricatorEdgeQuery
::
loadDestinationPHIDs
(
$revision
->
getPHID
(),
DifferentialRevisionHasTaskEdgeType
::
EDGECONST
);
}
public
function
getRequiredHandlePHIDsForPropertyView
()
{
return
$this
->
getValue
();
}
public
function
renderPropertyViewValue
(
array
$handles
)
{
return
$this
->
renderHandleList
(
$handles
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 13, 1:22 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
99024
Default Alt Text
DifferentialManiphestTasksField.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment