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']); | ||||
} | } | ||||
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 |