1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-06 12:51:01 +01:00
phorge-phorge/src/applications/transactions/editfield/PhabricatorIconSetEditField.php
epriestley 6fe882e50a Convert projects to EditEngine
Summary: Ref T10010. This is pretty straightforward with a couple of very minor new behaviors, like the icon selector edit field.

Test Plan:
  - Created projects.
  - Edited projects.
  - Saw "Create Project" in quick create menu.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10010

Differential Revision: https://secure.phabricator.com/D14896
2015-12-27 15:42:50 -08:00

30 lines
610 B
PHP

<?php
final class PhabricatorIconSetEditField
extends PhabricatorEditField {
private $iconSet;
public function setIconSet(PhabricatorIconSet $icon_set) {
$this->iconSet = $icon_set;
return $this;
}
public function getIconSet() {
return $this->iconSet;
}
protected function newControl() {
return id(new PHUIFormIconSetControl())
->setIconSet($this->getIconSet());
}
protected function newConduitParameterType() {
return new ConduitStringParameterType();
}
protected function newHTTPParameterType() {
return new AphrontStringHTTPParameterType();
}
}