3 final class PhabricatorPeopleDatasourceEngineExtension
4 extends PhabricatorDatasourceEngineExtension
{
6 public function newQuickSearchDatasources() {
8 new PhabricatorPeopleDatasource(),
12 public function newJumpURI($query) {
13 $viewer = $this->getViewer();
15 // Send "u" to the user directory.
16 if (preg_match('/^u\z/i', $query)) {
20 // Send "u <string>" to the user's profile page.
22 if (preg_match('/^u\s+(.+)\z/i', $query, $matches)) {
23 $raw_query = $matches[1];
25 // TODO: We could test that this is a valid username and jump to
26 // a search in the user directory if it isn't.