Path: blob/master/src/applications/people/application/PhabricatorPeopleApplication.php
12256 views
<?php12final class PhabricatorPeopleApplication extends PhabricatorApplication {34public function getName() {5return pht('People');6}78public function getShortDescription() {9return pht('User Accounts and Profiles');10}1112public function getBaseURI() {13return '/people/';14}1516public function getTitleGlyph() {17return "\xE2\x99\x9F";18}1920public function getIcon() {21return 'fa-users';22}2324public function isPinnedByDefault(PhabricatorUser $viewer) {25return $viewer->getIsAdmin();26}2728public function getFlavorText() {29return pht('Sort of a social utility.');30}3132public function getApplicationGroup() {33return self::GROUP_UTILITIES;34}3536public function canUninstall() {37return false;38}3940public function getRoutes() {41return array(42'/people/' => array(43$this->getQueryRoutePattern() => 'PhabricatorPeopleListController',44'logs/' => array(45$this->getQueryRoutePattern() => 'PhabricatorPeopleLogsController',46'(?P<id>\d+)/' => 'PhabricatorPeopleLogViewController',47),48'invite/' => array(49'(?:query/(?P<queryKey>[^/]+)/)?'50=> 'PhabricatorPeopleInviteListController',51'send/'52=> 'PhabricatorPeopleInviteSendController',53),54'approve/(?P<id>[1-9]\d*)/(?:via/(?P<via>[^/]+)/)?'55=> 'PhabricatorPeopleApproveController',56'(?P<via>disapprove)/(?P<id>[1-9]\d*)/'57=> 'PhabricatorPeopleDisableController',58'(?P<via>disable)/(?P<id>[1-9]\d*)/'59=> 'PhabricatorPeopleDisableController',60'empower/(?P<id>[1-9]\d*)/' => 'PhabricatorPeopleEmpowerController',61'delete/(?P<id>[1-9]\d*)/' => 'PhabricatorPeopleDeleteController',62'rename/(?P<id>[1-9]\d*)/' => 'PhabricatorPeopleRenameController',63'welcome/(?P<id>[1-9]\d*)/' => 'PhabricatorPeopleWelcomeController',64'create/' => 'PhabricatorPeopleCreateController',65'new/(?P<type>[^/]+)/' => 'PhabricatorPeopleNewController',66'editprofile/(?P<id>[1-9]\d*)/' =>67'PhabricatorPeopleProfileEditController',68'badges/(?P<id>[1-9]\d*)/' =>69'PhabricatorPeopleProfileBadgesController',70'tasks/(?P<id>[1-9]\d*)/' =>71'PhabricatorPeopleProfileTasksController',72'commits/(?P<id>[1-9]\d*)/' =>73'PhabricatorPeopleProfileCommitsController',74'revisions/(?P<id>[1-9]\d*)/' =>75'PhabricatorPeopleProfileRevisionsController',76'picture/(?P<id>[1-9]\d*)/' =>77'PhabricatorPeopleProfilePictureController',78'manage/(?P<id>[1-9]\d*)/' =>79'PhabricatorPeopleProfileManageController',80),81'/p/(?P<username>[\w._-]+)/' => array(82'' => 'PhabricatorPeopleProfileViewController',83),84);85}8687public function getRemarkupRules() {88return array(89new PhabricatorMentionRemarkupRule(),90);91}9293protected function getCustomCapabilities() {94return array(95PeopleCreateUsersCapability::CAPABILITY => array(96'default' => PhabricatorPolicies::POLICY_ADMIN,97),98PeopleDisableUsersCapability::CAPABILITY => array(99'default' => PhabricatorPolicies::POLICY_ADMIN,100),101PeopleBrowseUserDirectoryCapability::CAPABILITY => array(),102);103}104105public function getApplicationSearchDocumentTypes() {106return array(107PhabricatorPeopleUserPHIDType::TYPECONST,108);109}110111}112113114