Differential D18919 Diff 45427 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 407 Lines • ▼ Show 20 Lines | abstract class PhabricatorApplicationSearchEngine extends Phobject { | ||||
public function getQueryManagementURI() { | public function getQueryManagementURI() { | ||||
return $this->getURI('query/edit/'); | return $this->getURI('query/edit/'); | ||||
} | } | ||||
public function getQueryBaseURI() { | public function getQueryBaseURI() { | ||||
return $this->getURI(''); | return $this->getURI(''); | ||||
} | } | ||||
public function getExportURI($query_key) { | |||||
return $this->getURI('query/'.$query_key.'/export/'); | |||||
} | |||||
/** | /** | ||||
* 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,012 Lines • ▼ Show 20 Lines | /* -( Application Search )------------------------------------------------- */ | ||||
protected function getNewUserBody() { | protected function getNewUserBody() { | ||||
return null; | return null; | ||||
} | } | ||||
public function newUseResultsActions(PhabricatorSavedQuery $saved) { | public function newUseResultsActions(PhabricatorSavedQuery $saved) { | ||||
return array(); | return array(); | ||||
} | } | ||||
/* -( Export )------------------------------------------------------------- */ | |||||
public function canExport() { | |||||
$fields = $this->newExportFields(); | |||||
return (bool)$fields; | |||||
} | |||||
protected function newExportFields() { | |||||
return array(); | |||||
} | |||||
} | } |