Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F17826532
DifferentialTasksCommitMessageField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
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
)
{
return
array
(
array
(
'type'
=>
'tasks.set'
,
'value'
=>
$value
,
),
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jul 28, 7:22 AM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8254083
Default Alt Text
DifferentialTasksCommitMessageField.php (1 KB)
Attached To
Mode
rP Phabricator
Attached
Detach File
Event Timeline
Log In to Comment