1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-15 03:12:41 +01:00
phorge-phorge/src/applications/transactions/editfield/PhabricatorBoolEditField.php

24 lines
470 B
PHP
Raw Normal View History

<?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();
}
}