mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 03:12:41 +01:00
24 lines
470 B
PHP
24 lines
470 B
PHP
|
<?php
|
||
|
|
||
|
final class PhabricatorBoolEditField
|
||
|
extends PhabricatorEditField {
|
||
|
|
||
|
protected function newControl() {
|
||
|
return id(new AphrontFormSelectControl())
|
||
|
->setOptions(
|
||
|
array(
|
||
|
'0' => pht('False'),
|
||
|
'1' => pht('True'),
|
||
|
));
|
||
|
}
|
||
|
|
||
|
protected function newHTTPParameterType() {
|
||
|
return new AphrontBoolHTTPParameterType();
|
||
|
}
|
||
|
|
||
|
protected function newConduitParameterType() {
|
||
|
return new ConduitBoolParameterType();
|
||
|
}
|
||
|
|
||
|
}
|