2016-04-07 20:06:26 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PhabricatorEpochEditField
|
|
|
|
extends PhabricatorEditField {
|
|
|
|
|
2016-07-12 19:04:05 +02:00
|
|
|
private $allowNull;
|
|
|
|
|
|
|
|
public function setAllowNull($allow_null) {
|
|
|
|
$this->allowNull = $allow_null;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getAllowNull() {
|
|
|
|
return $this->allowNull;
|
|
|
|
}
|
|
|
|
|
2016-04-07 20:06:26 +02:00
|
|
|
protected function newControl() {
|
|
|
|
return id(new AphrontFormDateControl())
|
2016-07-12 19:04:05 +02:00
|
|
|
->setAllowNull($this->getAllowNull())
|
2016-04-07 20:06:26 +02:00
|
|
|
->setViewer($this->getViewer());
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function newHTTPParameterType() {
|
|
|
|
return new AphrontEpochHTTPParameterType();
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function newConduitParameterType() {
|
|
|
|
// TODO: This isn't correct, but we don't have any methods which use this
|
|
|
|
// yet.
|
|
|
|
return new ConduitIntParameterType();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|