Differential D20474 Diff 48879 src/applications/search/engine/PhabricatorApplicationSearchEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/engine/PhabricatorApplicationSearchEngine.php
Show First 20 Lines • Show All 419 Lines • ▼ Show 20 Lines | abstract class PhabricatorApplicationSearchEngine extends Phobject { | ||||
public function getQueryBaseURI() { | public function getQueryBaseURI() { | ||||
return $this->getURI(''); | return $this->getURI(''); | ||||
} | } | ||||
public function getExportURI($query_key) { | public function getExportURI($query_key) { | ||||
return $this->getURI('query/'.$query_key.'/export/'); | return $this->getURI('query/'.$query_key.'/export/'); | ||||
} | } | ||||
public function getCustomizeURI($query_key, $object_phid, $context_phid) { | |||||
$params = array( | |||||
'search.objectPHID' => $object_phid, | |||||
'search.contextPHID' => $context_phid, | |||||
); | |||||
$uri = $this->getURI('query/'.$query_key.'/customize/'); | |||||
$uri = new PhutilURI($uri, $params); | |||||
return phutil_string_cast($uri); | |||||
} | |||||
/** | /** | ||||
* Return the URI to a path within the application. Used to construct default | * Return the URI to a path within the application. Used to construct default | ||||
* URIs for management and results. | * URIs for management and results. | ||||
* | * | ||||
* @return string URI to path. | * @return string URI to path. | ||||
* @task uri | * @task uri | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 1,178 Lines • Show Last 20 Lines |