Page MenuHomec4science

PhabricatorCheckboxesEditField.php
No OneTemporary

File Metadata

Created
Fri, Jul 5, 14:52

PhabricatorCheckboxesEditField.php

<?php
final class PhabricatorCheckboxesEditField
extends PhabricatorEditField {
private $options;
protected function newControl() {
$options = $this->getOptions();
return id(new AphrontFormCheckboxControl())
->setOptions($options);
}
protected function newConduitParameterType() {
return new ConduitStringListParameterType();
}
protected function newHTTPParameterType() {
return new AphrontStringListHTTPParameterType();
}
public function setOptions(array $options) {
$this->options = $options;
return $this;
}
public function getOptions() {
if ($this->options === null) {
throw new PhutilInvalidStateException('setOptions');
}
return $this->options;
}
}

Event Timeline