mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 03:12:41 +01:00
cdec319143
Summary: Fixes T10684. Fixes T10520. This primarily implements a date/epoch field, and then does a bunch of standard plumbing. Test Plan: - Created countdowns. - Edited countdowns. - Used HTTP prefilling. - Created a countdown ending on "Christmas Morning", etc. Reviewers: chad Reviewed By: chad Maniphest Tasks: T10520, T10684 Differential Revision: https://secure.phabricator.com/D15655
21 lines
490 B
PHP
21 lines
490 B
PHP
<?php
|
|
|
|
final class PhabricatorEpochEditField
|
|
extends PhabricatorEditField {
|
|
|
|
protected function newControl() {
|
|
return id(new AphrontFormDateControl())
|
|
->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();
|
|
}
|
|
|
|
}
|