Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96193789
DifferentialManiphestTasksField.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, Dec 23, 15:41
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Dec 25, 15:41 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23142039
Attached To
rPH Phabricator
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
);
}
}
Event Timeline
Log In to Comment