mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-06 12:51:01 +01:00
6fe882e50a
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
30 lines
610 B
PHP
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();
|
|
}
|
|
|
|
}
|