Page MenuHomestyx hydra

PhabricatorSelectEditField.php
No OneTemporary

PhabricatorSelectEditField.php

<?php
final class PhabricatorSelectEditField
extends PhabricatorEditField {
private $options;
public function setOptions(array $options) {
$this->options = $options;
return $this;
}
public function getOptions() {
if ($this->options === null) {
throw new PhutilInvalidStateException('setOptions');
}
return $this->options;
}
protected function newControl() {
return id(new AphrontFormSelectControl())
->setOptions($this->getOptions());
}
protected function newHTTPParameterType() {
return new AphrontSelectHTTPParameterType();
}
protected function newCommentAction() {
return id(new PhabricatorEditEngineSelectCommentAction())
->setOptions($this->getOptions());
}
protected function newConduitParameterType() {
return new ConduitStringParameterType();
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Nov 15, 4:42 PM (12 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
338180
Default Alt Text
PhabricatorSelectEditField.php (846 B)

Event Timeline