mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-24 13:38:19 +01:00
30 lines
572 B
PHP
30 lines
572 B
PHP
|
<?php
|
||
|
|
||
|
final class PhabricatorEditEngineSelectCommentAction
|
||
|
extends PhabricatorEditEngineCommentAction {
|
||
|
|
||
|
private $options;
|
||
|
|
||
|
public function setOptions(array $options) {
|
||
|
$this->options = $options;
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getOptions() {
|
||
|
return $this->options;
|
||
|
}
|
||
|
|
||
|
public function getPHUIXControlType() {
|
||
|
return 'select';
|
||
|
}
|
||
|
|
||
|
public function getPHUIXControlSpecification() {
|
||
|
return array(
|
||
|
'options' => $this->getOptions(),
|
||
|
'order' => array_keys($this->getOptions()),
|
||
|
'value' => $this->getValue(),
|
||
|
);
|
||
|
}
|
||
|
|
||
|
}
|