mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-28 17:52:43 +01:00
fe5cd4ca2c
Summary: Normalizes all `setFontIcon` calls to `setIcon`. Test Plan: UIExamples, Almanac, Apps list, etc. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin, hach-que, yelirekim Differential Revision: https://secure.phabricator.com/D15129
84 lines
2.3 KiB
PHP
84 lines
2.3 KiB
PHP
<?php
|
|
|
|
final class PhabricatorSpacesApplication extends PhabricatorApplication {
|
|
|
|
public function getBaseURI() {
|
|
return '/spaces/';
|
|
}
|
|
|
|
public function getName() {
|
|
return pht('Spaces');
|
|
}
|
|
|
|
public function getShortDescription() {
|
|
return pht('Policy Namespaces');
|
|
}
|
|
|
|
public function getIcon() {
|
|
return 'fa-th-large';
|
|
}
|
|
|
|
public function getTitleGlyph() {
|
|
return "\xE2\x97\x8B";
|
|
}
|
|
|
|
public function getFlavorText() {
|
|
return pht('Control access to groups of objects.');
|
|
}
|
|
|
|
public function getApplicationGroup() {
|
|
return self::GROUP_UTILITIES;
|
|
}
|
|
|
|
public function canUninstall() {
|
|
return false;
|
|
}
|
|
|
|
public function getHelpDocumentationArticles(PhabricatorUser $viewer) {
|
|
return array(
|
|
array(
|
|
'name' => pht('Spaces User Guide'),
|
|
'href' => PhabricatorEnv::getDoclink('Spaces User Guide'),
|
|
),
|
|
);
|
|
}
|
|
|
|
public function getRemarkupRules() {
|
|
return array(
|
|
new PhabricatorSpacesRemarkupRule(),
|
|
);
|
|
}
|
|
|
|
public function getRoutes() {
|
|
return array(
|
|
'/S(?P<id>[1-9]\d*)' => 'PhabricatorSpacesViewController',
|
|
'/spaces/' => array(
|
|
'(?:query/(?P<queryKey>[^/]+)/)?' => 'PhabricatorSpacesListController',
|
|
'create/' => 'PhabricatorSpacesEditController',
|
|
'edit/(?:(?P<id>\d+)/)?' => 'PhabricatorSpacesEditController',
|
|
'(?P<action>activate|archive)/(?P<id>\d+)/'
|
|
=> 'PhabricatorSpacesArchiveController',
|
|
),
|
|
);
|
|
}
|
|
|
|
protected function getCustomCapabilities() {
|
|
return array(
|
|
PhabricatorSpacesCapabilityCreateSpaces::CAPABILITY => array(
|
|
'default' => PhabricatorPolicies::POLICY_ADMIN,
|
|
),
|
|
PhabricatorSpacesCapabilityDefaultView::CAPABILITY => array(
|
|
'caption' => pht('Default view policy for newly created spaces.'),
|
|
'template' => PhabricatorSpacesNamespacePHIDType::TYPECONST,
|
|
'capability' => PhabricatorPolicyCapability::CAN_VIEW,
|
|
),
|
|
PhabricatorSpacesCapabilityDefaultEdit::CAPABILITY => array(
|
|
'caption' => pht('Default edit policy for newly created spaces.'),
|
|
'default' => PhabricatorPolicies::POLICY_ADMIN,
|
|
'template' => PhabricatorSpacesNamespacePHIDType::TYPECONST,
|
|
'capability' => PhabricatorPolicyCapability::CAN_EDIT,
|
|
),
|
|
);
|
|
}
|
|
|
|
}
|