Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conduit/query/PhabricatorConduitSearchEngine.php
Show All 31 Lines | final class PhabricatorConduitSearchEngine | ||||
} | } | ||||
public function buildQueryFromSavedQuery(PhabricatorSavedQuery $saved) { | public function buildQueryFromSavedQuery(PhabricatorSavedQuery $saved) { | ||||
$query = id(new PhabricatorConduitMethodQuery()); | $query = id(new PhabricatorConduitMethodQuery()); | ||||
$query->withIsStable($saved->getParameter('isStable')); | $query->withIsStable($saved->getParameter('isStable')); | ||||
$query->withIsUnstable($saved->getParameter('isUnstable')); | $query->withIsUnstable($saved->getParameter('isUnstable')); | ||||
$query->withIsDeprecated($saved->getParameter('isDeprecated')); | $query->withIsDeprecated($saved->getParameter('isDeprecated')); | ||||
$query->withIsInternal(false); | |||||
$names = $saved->getParameter('applicationNames', array()); | $names = $saved->getParameter('applicationNames', array()); | ||||
if ($names) { | if ($names) { | ||||
$query->withApplicationNames($names); | $query->withApplicationNames($names); | ||||
} | } | ||||
$contains = $saved->getParameter('nameContains'); | $contains = $saved->getParameter('nameContains'); | ||||
if (strlen($contains)) { | if (strlen($contains)) { | ||||
▲ Show 20 Lines • Show All 158 Lines • Show Last 20 Lines |