Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F111911132
DifferentialTasksCommitMessageField.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, May 5, 23:44
Size
1 KB
Mime Type
text/x-php
Expires
Wed, May 7, 23:44 (2 d)
Engine
blob
Format
Raw Data
Handle
25997884
Attached To
rPH Phabricator
DifferentialTasksCommitMessageField.php
View Options
<?php
final
class
DifferentialTasksCommitMessageField
extends
DifferentialCommitMessageField
{
const
FIELDKEY
=
'maniphestTaskPHIDs'
;
public
function
getFieldName
()
{
return
pht
(
'Maniphest Tasks'
);
}
public
function
getFieldOrder
()
{
return
8000
;
}
public
function
getFieldAliases
()
{
return
array
(
'Task'
,
'Tasks'
,
'Maniphest Task'
,
);
}
public
function
isTemplateField
()
{
return
false
;
}
public
function
parseFieldValue
(
$value
)
{
return
$this
->
parseObjectList
(
$value
,
array
(
ManiphestTaskPHIDType
::
TYPECONST
,
));
}
public
function
readFieldValueFromObject
(
DifferentialRevision
$revision
)
{
if
(!
$revision
->
getPHID
())
{
return
array
();
}
$projects
=
PhabricatorEdgeQuery
::
loadDestinationPHIDs
(
$revision
->
getPHID
(),
DifferentialRevisionHasTaskEdgeType
::
EDGECONST
);
$projects
=
array_reverse
(
$projects
);
return
$projects
;
}
public
function
readFieldValueFromConduit
(
$value
)
{
return
$this
->
readStringListFieldValueFromConduit
(
$value
);
}
public
function
renderFieldValue
(
$value
)
{
return
$this
->
renderHandleList
(
$value
);
}
public
function
getFieldTransactions
(
$value
)
{
// TODO: Implement this!
return
array
();
}
}
Event Timeline
Log In to Comment