Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conduit/query/PhabricatorConduitSearchEngine.php
Show All 33 Lines | 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); | $query->withIsInternal(false); | ||||
$contains = $saved->getParameter('nameContains'); | $contains = $saved->getParameter('nameContains'); | ||||
if (strlen($contains)) { | if ($contains !== null && strlen($contains)) { | ||||
$query->withNameContains($contains); | $query->withNameContains($contains); | ||||
} | } | ||||
return $query; | return $query; | ||||
} | } | ||||
public function buildSearchForm( | public function buildSearchForm( | ||||
AphrontFormView $form, | AphrontFormView $form, | ||||
▲ Show 20 Lines • Show All 142 Lines • Show Last 20 Lines |