Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/query/ManiphestTaskSearchEngine.php
Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Lines | return array( | ||||
->setLabel(pht('Created Before')) | ->setLabel(pht('Created Before')) | ||||
->setKey('createdEnd'), | ->setKey('createdEnd'), | ||||
id(new PhabricatorSearchDateField()) | id(new PhabricatorSearchDateField()) | ||||
->setLabel(pht('Updated After')) | ->setLabel(pht('Updated After')) | ||||
->setKey('modifiedStart'), | ->setKey('modifiedStart'), | ||||
id(new PhabricatorSearchDateField()) | id(new PhabricatorSearchDateField()) | ||||
->setLabel(pht('Updated Before')) | ->setLabel(pht('Updated Before')) | ||||
->setKey('modifiedEnd'), | ->setKey('modifiedEnd'), | ||||
id(new PhabricatorSearchDateField()) | |||||
->setLabel(pht('Closed After')) | |||||
->setKey('closedStart'), | |||||
id(new PhabricatorSearchDateField()) | |||||
->setLabel(pht('Closed Before')) | |||||
->setKey('closedEnd'), | |||||
id(new PhabricatorUsersSearchField()) | |||||
->setLabel(pht('Closed By')) | |||||
->setKey('closerPHIDs') | |||||
->setAliases(array('closer', 'closerPHID', 'closers')) | |||||
->setDescription(pht('Search for tasks closed by certain users.')), | |||||
id(new PhabricatorSearchTextField()) | id(new PhabricatorSearchTextField()) | ||||
->setLabel(pht('Page Size')) | ->setLabel(pht('Page Size')) | ||||
->setKey('limit'), | ->setKey('limit'), | ||||
); | ); | ||||
} | } | ||||
protected function getDefaultFieldOrder() { | protected function getDefaultFieldOrder() { | ||||
return array( | return array( | ||||
Show All 11 Lines | return array( | ||||
'group', | 'group', | ||||
'order', | 'order', | ||||
'ids', | 'ids', | ||||
'...', | '...', | ||||
'createdStart', | 'createdStart', | ||||
'createdEnd', | 'createdEnd', | ||||
'modifiedStart', | 'modifiedStart', | ||||
'modifiedEnd', | 'modifiedEnd', | ||||
'closedStart', | |||||
'closedEnd', | |||||
'closerPHIDs', | |||||
'limit', | 'limit', | ||||
); | ); | ||||
} | } | ||||
protected function getHiddenFields() { | protected function getHiddenFields() { | ||||
$keys = array(); | $keys = array(); | ||||
if ($this->getIsBoardView()) { | if ($this->getIsBoardView()) { | ||||
Show All 39 Lines | protected function buildQueryFromParameters(array $map) { | ||||
if ($map['modifiedStart']) { | if ($map['modifiedStart']) { | ||||
$query->withDateModifiedAfter($map['modifiedStart']); | $query->withDateModifiedAfter($map['modifiedStart']); | ||||
} | } | ||||
if ($map['modifiedEnd']) { | if ($map['modifiedEnd']) { | ||||
$query->withDateModifiedBefore($map['modifiedEnd']); | $query->withDateModifiedBefore($map['modifiedEnd']); | ||||
} | } | ||||
if ($map['closedStart'] || $map['closedEnd']) { | |||||
$query->withClosedEpochBetween($map['closedStart'], $map['closedEnd']); | |||||
} | |||||
if ($map['closerPHIDs']) { | |||||
$query->withCloserPHIDs($map['closerPHIDs']); | |||||
} | |||||
if ($map['hasParents'] !== null) { | if ($map['hasParents'] !== null) { | ||||
$query->withOpenParents($map['hasParents']); | $query->withOpenParents($map['hasParents']); | ||||
} | } | ||||
if ($map['hasSubtasks'] !== null) { | if ($map['hasSubtasks'] !== null) { | ||||
$query->withOpenSubtasks($map['hasSubtasks']); | $query->withOpenSubtasks($map['hasSubtasks']); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 344 Lines • Show Last 20 Lines |