2013-04-15 15:43:39 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PhabricatorApplicationSearch extends PhabricatorApplication {
|
|
|
|
|
|
|
|
public function getBaseURI() {
|
|
|
|
return '/search/';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getName() {
|
|
|
|
return pht('Search');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getShortDescription() {
|
|
|
|
return pht('Search & Find');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getFlavorText() {
|
|
|
|
return pht('Find stuff in big piles.');
|
|
|
|
}
|
|
|
|
|
2013-10-23 20:30:52 +02:00
|
|
|
public function getIconName() {
|
|
|
|
return 'search';
|
|
|
|
}
|
|
|
|
|
2013-04-15 15:43:39 +02:00
|
|
|
public function shouldAppearInLaunchView() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getRoutes() {
|
|
|
|
return array(
|
|
|
|
'/search/' => array(
|
2014-02-03 21:52:47 +01:00
|
|
|
'(?:query/(?P<queryKey>[^/]+)/)?' => 'PhabricatorSearchController',
|
2013-04-15 15:43:39 +02:00
|
|
|
'attach/(?P<phid>[^/]+)/(?P<type>\w+)/(?:(?P<action>\w+)/)?'
|
|
|
|
=> 'PhabricatorSearchAttachController',
|
|
|
|
'select/(?P<type>\w+)/'
|
|
|
|
=> 'PhabricatorSearchSelectController',
|
|
|
|
'index/(?P<phid>[^/]+)/' => 'PhabricatorSearchIndexController',
|
|
|
|
'hovercard/(?P<mode>retrieve|test)/' =>
|
|
|
|
'PhabricatorSearchHovercardController',
|
2013-05-27 22:42:01 +02:00
|
|
|
'edit/(?P<queryKey>[^/]+)/' => 'PhabricatorSearchEditController',
|
2013-06-05 14:28:25 +02:00
|
|
|
'delete/(?P<queryKey>[^/]+)/(?P<engine>[^/]+)/'
|
|
|
|
=> 'PhabricatorSearchDeleteController',
|
2013-06-06 01:22:27 +02:00
|
|
|
'order/(?P<engine>[^/]+)/' => 'PhabricatorSearchOrderController',
|
2013-05-10 22:43:59 +02:00
|
|
|
),
|
2013-04-15 15:43:39 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|