Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/editor/ManiphestEditEngine.php
Show First 20 Lines • Show All 163 Lines • ▼ Show 20 Lines | $fields = array( | ||||
->setDescription(pht('Create a task in a workboard column.')) | ->setDescription(pht('Create a task in a workboard column.')) | ||||
->setConduitDescription( | ->setConduitDescription( | ||||
pht('Move a task to one or more workboard columns.')) | pht('Move a task to one or more workboard columns.')) | ||||
->setConduitTypeDescription( | ->setConduitTypeDescription( | ||||
pht('List of columns to move the task to.')) | pht('List of columns to move the task to.')) | ||||
->setConduitDocumentation($column_documentation) | ->setConduitDocumentation($column_documentation) | ||||
->setAliases(array('columnPHID', 'columns', 'columnPHIDs')) | ->setAliases(array('columnPHID', 'columns', 'columnPHIDs')) | ||||
->setTransactionType(PhabricatorTransactions::TYPE_COLUMNS) | ->setTransactionType(PhabricatorTransactions::TYPE_COLUMNS) | ||||
->setIsReorderable(false) | ->setIsFormField(false) | ||||
->setIsDefaultable(false) | |||||
->setIsLockable(false) | |||||
->setCommentActionLabel(pht('Move on Workboard')) | ->setCommentActionLabel(pht('Move on Workboard')) | ||||
->setCommentActionOrder(2000) | ->setCommentActionOrder(2000) | ||||
->setColumnMap($column_map), | ->setColumnMap($column_map), | ||||
id(new PhabricatorTextEditField()) | id(new PhabricatorTextEditField()) | ||||
->setKey('title') | ->setKey('title') | ||||
->setLabel(pht('Title')) | ->setLabel(pht('Title')) | ||||
->setBulkEditLabel(pht('Set title to')) | ->setBulkEditLabel(pht('Set title to')) | ||||
->setDescription(pht('Name of the task.')) | ->setDescription(pht('Name of the task.')) | ||||
▲ Show 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | EODOCS | ||||
$fields[] = id(new PhabricatorHandlesEditField()) | $fields[] = id(new PhabricatorHandlesEditField()) | ||||
->setKey('parents') | ->setKey('parents') | ||||
->setLabel(pht('Parents')) | ->setLabel(pht('Parents')) | ||||
->setDescription(pht('Parent tasks.')) | ->setDescription(pht('Parent tasks.')) | ||||
->setConduitDescription(pht('Change the parents of this task.')) | ->setConduitDescription(pht('Change the parents of this task.')) | ||||
->setConduitTypeDescription(pht('List of parent task PHIDs.')) | ->setConduitTypeDescription(pht('List of parent task PHIDs.')) | ||||
->setUseEdgeTransactions(true) | ->setUseEdgeTransactions(true) | ||||
->setIsConduitOnly(true) | ->setIsFormField(false) | ||||
->setTransactionType(PhabricatorTransactions::TYPE_EDGE) | ->setTransactionType(PhabricatorTransactions::TYPE_EDGE) | ||||
->setMetadataValue('edge:type', $parent_type) | ->setMetadataValue('edge:type', $parent_type) | ||||
->setValue($parent_phids); | ->setValue($parent_phids); | ||||
$fields[] = id(new PhabricatorHandlesEditField()) | $fields[] = id(new PhabricatorHandlesEditField()) | ||||
->setKey('subtasks') | ->setKey('subtasks') | ||||
->setLabel(pht('Subtasks')) | ->setLabel(pht('Subtasks')) | ||||
->setDescription(pht('Subtasks.')) | ->setDescription(pht('Subtasks.')) | ||||
->setConduitDescription(pht('Change the subtasks of this task.')) | ->setConduitDescription(pht('Change the subtasks of this task.')) | ||||
->setConduitTypeDescription(pht('List of subtask PHIDs.')) | ->setConduitTypeDescription(pht('List of subtask PHIDs.')) | ||||
->setUseEdgeTransactions(true) | ->setUseEdgeTransactions(true) | ||||
->setIsConduitOnly(true) | ->setIsFormField(false) | ||||
->setTransactionType(PhabricatorTransactions::TYPE_EDGE) | ->setTransactionType(PhabricatorTransactions::TYPE_EDGE) | ||||
->setMetadataValue('edge:type', $subtask_type) | ->setMetadataValue('edge:type', $subtask_type) | ||||
->setValue($parent_phids); | ->setValue($parent_phids); | ||||
return $fields; | return $fields; | ||||
} | } | ||||
private function getTaskStatusMap(ManiphestTask $task) { | private function getTaskStatusMap(ManiphestTask $task) { | ||||
▲ Show 20 Lines • Show All 215 Lines • Show Last 20 Lines |