Changeset View
Changeset View
Standalone View
Standalone View
src/applications/legalpad/query/LegalpadDocumentSearchEngine.php
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | final class LegalpadDocumentSearchEngine | ||||
protected function buildQueryFromParameters(array $map) { | protected function buildQueryFromParameters(array $map) { | ||||
$query = $this->newQuery(); | $query = $this->newQuery(); | ||||
if ($map['signerPHIDs']) { | if ($map['signerPHIDs']) { | ||||
$query->withSignerPHIDs($map['signerPHIDs']); | $query->withSignerPHIDs($map['signerPHIDs']); | ||||
} | } | ||||
if ($map['contributorPHIDs']) { | if ($map['contributorPHIDs']) { | ||||
$query->withContributorPHIDs($map['creatorPHIDs']); | $query->withContributorPHIDs($map['contributorPHIDs']); | ||||
speck: Ah, caught a copy/paste issue? | |||||
Done Inline ActionsYep. I guess people don't use these constraints very often... roguelazer: Yep. I guess people don't use these constraints very often... | |||||
} | } | ||||
if ($map['creatorPHIDs']) { | if ($map['creatorPHIDs']) { | ||||
$query->withCreatorPHIDs($map['creatorPHIDs']); | $query->withCreatorPHIDs($map['creatorPHIDs']); | ||||
} | } | ||||
if ($map['createdStart']) { | if ($map['createdStart']) { | ||||
$query->withDateCreatedAfter($map['createdStart']); | $query->withDateCreatedAfter($map['createdStart']); | ||||
▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0
Ah, caught a copy/paste issue?