Differential D14896 Diff 36004 src/applications/transactions/editfield/PhabricatorIconSetEditField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editfield/PhabricatorIconSetEditField.php
- This file was added.
| <?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(); | |||||
| } | |||||
| } | |||||