Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F458593
PhabricatorBadgesApplication.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
PhabricatorBadgesApplication.php
View Options
<?php
final
class
PhabricatorBadgesApplication
extends
PhabricatorApplication
{
public
function
getName
()
{
return
pht
(
'Badges'
);
}
public
function
getBaseURI
()
{
return
'/badges/'
;
}
public
function
getShortDescription
()
{
return
pht
(
'Achievements and Notority'
);
}
public
function
getFontIcon
()
{
return
'fa-trophy'
;
}
public
function
getFlavorText
()
{
return
pht
(
'Build self esteem through gamification.'
);
}
public
function
getApplicationGroup
()
{
return
self
::
GROUP_UTILITIES
;
}
public
function
canUninstall
()
{
return
true
;
}
public
function
isPrototype
()
{
return
true
;
}
public
function
getRoutes
()
{
return
array
(
'/badges/'
=>
array
(
'(?:query/(?P<queryKey>[^/]+)/)?'
=>
'PhabricatorBadgesListController'
,
'create/'
=>
'PhabricatorBadgesEditController'
,
'comment/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorBadgesCommentController'
,
'edit/(?:(?P<id>
\d
+)/)?'
=>
'PhabricatorBadgesEditController'
,
'view/(?:(?P<id>
\d
+)/)?'
=>
'PhabricatorBadgesViewController'
,
'icon/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorBadgesEditIconController'
,
'icon/'
=>
'PhabricatorBadgesEditIconController'
,
'recipients/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorBadgesEditRecipientsController'
,
'recipients/(?P<id>[1-9]
\d
*)/remove/'
=>
'PhabricatorBadgesRemoveRecipientsController'
,
),
);
}
protected
function
getCustomCapabilities
()
{
return
array
(
PhabricatorBadgesCreateCapability
::
CAPABILITY
=>
array
(
'default'
=>
PhabricatorPolicies
::
POLICY_ADMIN
,
'caption'
=>
pht
(
'Default create policy for badges.'
),
),
PhabricatorBadgesDefaultEditCapability
::
CAPABILITY
=>
array
(
'default'
=>
PhabricatorPolicies
::
POLICY_ADMIN
,
'caption'
=>
pht
(
'Default edit policy for badges.'
),
'template'
=>
PhabricatorBadgesPHIDType
::
TYPECONST
,
),
PhabricatorBadgesDefaultViewCapability
::
CAPABILITY
=>
array
(
'caption'
=>
pht
(
'Default view policy for badges.'
),
'template'
=>
PhabricatorBadgesPHIDType
::
TYPECONST
,
),
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 5, 12:22 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
71478
Default Alt Text
PhabricatorBadgesApplication.php (2 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment