1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-15 03:12:41 +01:00
phorge-phorge/src/applications/transactions/editfield/PhabricatorColumnsEditField.php
epriestley 67629aab14 Implement a rough optgroup-based "Move on Workboard" stacked action
Summary:
Ref T6027. Try this out and see how it feels? Clear issues:

  - This definitely shouldn't be at the top.
  - You should probably be able to select it multiple times?
  - Some of the "which columns show up" rules might need adjustment?
  - Diamond marker maybe not great?

Not sure I love this but it doesn't feel //terrible//...

Test Plan: {F1207891}

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T6027

Differential Revision: https://secure.phabricator.com/D15638
2016-04-06 09:15:12 -07:00

42 lines
893 B
PHP

<?php
final class PhabricatorColumnsEditField
extends PhabricatorPHIDListEditField {
private $columnMap;
public function setColumnMap(array $column_map) {
$this->columnMap = $column_map;
return $this;
}
public function getColumnMap() {
return $this->columnMap;
}
protected function newControl() {
$control = id(new AphrontFormHandlesControl());
$control->setIsInvisible(true);
return $control;
}
protected function newHTTPParameterType() {
return new AphrontPHIDListHTTPParameterType();
}
protected function newConduitParameterType() {
return new ConduitColumnsParameterType();
}
protected function newCommentAction() {
$column_map = $this->getColumnMap();
if (!$column_map) {
return null;
}
return id(new PhabricatorEditEngineColumnsCommentAction())
->setColumnMap($this->getColumnMap());
}
}