Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/field/PhabricatorSearchDateField.php
<?php | <?php | ||||
final class PhabricatorSearchDateField | final class PhabricatorSearchDateField | ||||
extends PhabricatorSearchField { | extends PhabricatorSearchField { | ||||
protected function newControl() { | protected function newControl() { | ||||
return new AphrontFormTextControl(); | return id(new AphrontFormTextControl()) | ||||
->setPlaceholder(pht('"2022-12-25" or "7 days ago"...')); | |||||
} | } | ||||
protected function getValueFromRequest(AphrontRequest $request, $key) { | protected function getValueFromRequest(AphrontRequest $request, $key) { | ||||
return $request->getStr($key); | return $request->getStr($key); | ||||
} | } | ||||
public function getValueForQuery($value) { | public function getValueForQuery($value) { | ||||
return $this->parseDateTime($value); | return $this->parseDateTime($value); | ||||
Show All 38 Lines |