Differential D14013 Diff 33897 src/applications/project/typeahead/PhabricatorProjectOrUserFunctionDatasource.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/typeahead/PhabricatorProjectOrUserFunctionDatasource.php
- This file was added.
<?php | |||||
final class PhabricatorProjectOrUserFunctionDatasource | |||||
extends PhabricatorTypeaheadCompositeDatasource { | |||||
public function getBrowseTitle() { | |||||
return pht('Browse Users and Projects'); | |||||
} | |||||
public function getPlaceholderText() { | |||||
return pht('Type a user, project name, or function...'); | |||||
} | |||||
public function getComponentDatasources() { | |||||
return array( | |||||
new PhabricatorViewerDatasource(), | |||||
new PhabricatorPeopleDatasource(), | |||||
new PhabricatorProjectDatasource(), | |||||
new PhabricatorProjectMembersDatasource(), | |||||
new PhabricatorProjectUserFunctionDatasource(), | |||||
); | |||||
} | |||||
} |