@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final class PhabricatorEditEngineSelectCommentAction
4 extends PhabricatorEditEngineCommentAction {
5
6 private $options;
7
8 public function setOptions(array $options) {
9 $this->options = $options;
10 return $this;
11 }
12
13 public function getOptions() {
14 return $this->options;
15 }
16
17 public function getPHUIXControlType() {
18 return 'select';
19 }
20
21 public function getPHUIXControlSpecification() {
22 return array(
23 'options' => $this->getOptions(),
24 'order' => array_keys($this->getOptions()),
25 'value' => $this->getValue(),
26 );
27 }
28
29}