mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 03:12:41 +01:00
eef2572508
Summary: Ref T9908. This is the last of the things that need to swap over. Test Plan: - Created tasks from a workboard. - Created tasks in different columns. - Edited tasks. - Used `?parent=..`. - Verified that default edit form config now affects comment actions. - No more weird comment thing on forms, at least for now. Reviewers: chad Reviewed By: chad Maniphest Tasks: T9908 Differential Revision: https://secure.phabricator.com/D14715
47 lines
948 B
PHP
47 lines
948 B
PHP
<?php
|
|
|
|
final class PhabricatorHandlesEditField
|
|
extends PhabricatorPHIDListEditField {
|
|
|
|
private $handleParameterType;
|
|
private $isInvisible;
|
|
|
|
public function setHandleParameterType(AphrontHTTPParameterType $type) {
|
|
$this->handleParameterType = $type;
|
|
return $this;
|
|
}
|
|
|
|
public function getHandleParameterType() {
|
|
return $this->handleParameterType;
|
|
}
|
|
|
|
public function setIsInvisible($is_invisible) {
|
|
$this->isInvisible = $is_invisible;
|
|
return $this;
|
|
}
|
|
|
|
public function getIsInvisible() {
|
|
return $this->isInvisible;
|
|
}
|
|
|
|
protected function newControl() {
|
|
$control = id(new AphrontFormHandlesControl());
|
|
|
|
if ($this->getIsInvisible()) {
|
|
$control->setIsInvisible(true);
|
|
}
|
|
|
|
return $control;
|
|
}
|
|
|
|
protected function newHTTPParameterType() {
|
|
$type = $this->getHandleParameterType();
|
|
|
|
if ($type) {
|
|
return $type;
|
|
}
|
|
|
|
return new AphrontPHIDListHTTPParameterType();
|
|
}
|
|
|
|
}
|