Differential D18589 Diff 44640 src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
Show First 20 Lines • Show All 1,463 Lines • ▼ Show 20 Lines | public function withFerretQuery( | ||||
} | } | ||||
$this->ferretEngine = $engine; | $this->ferretEngine = $engine; | ||||
$this->ferretQuery = $query; | $this->ferretQuery = $query; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getFerretTokens() { | |||||
if (!$this->supportsFerretEngine()) { | |||||
throw new Exception( | |||||
pht( | |||||
'Query ("%s") does not support the Ferret fulltext engine.', | |||||
get_class($this))); | |||||
} | |||||
return $this->ferretTokens; | |||||
} | |||||
public function withFerretConstraint( | public function withFerretConstraint( | ||||
PhabricatorFerretEngine $engine, | PhabricatorFerretEngine $engine, | ||||
array $fulltext_tokens) { | array $fulltext_tokens) { | ||||
if (!$this->supportsFerretEngine()) { | if (!$this->supportsFerretEngine()) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
'Query ("%s") does not support the Ferret fulltext engine.', | 'Query ("%s") does not support the Ferret fulltext engine.', | ||||
▲ Show 20 Lines • Show All 1,280 Lines • Show Last 20 Lines |