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.');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function shouldAppearInLaunchView() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getRoutes() {
|
|
|
|
return array(
|
|
|
|
'/search/' => array(
|
|
|
|
'' => 'PhabricatorSearchController',
|
|
|
|
'(?P<key>[^/]+)/' => 'PhabricatorSearchController',
|
|
|
|
'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-05-27 22:42:44 +02:00
|
|
|
'delete/(?P<queryKey>[^/]+)/' => 'PhabricatorSearchDeleteController',
|
2013-05-10 22:43:59 +02:00
|
|
|
),
|
2013-04-15 15:43:39 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|