Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F112109986
PhabricatorApplicationHerald.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, May 7, 17:59
Size
1 KB
Mime Type
text/x-php
Expires
Fri, May 9, 17:59 (2 d)
Engine
blob
Format
Raw Data
Handle
26006350
Attached To
rPH Phabricator
PhabricatorApplicationHerald.php
View Options
<?php
final
class
PhabricatorApplicationHerald
extends
PhabricatorApplication
{
const
CAN_CREATE_RULE
=
'herald.create'
;
const
CAN_CREATE_GLOBAL_RULE
=
'herald.global'
;
public
function
getBaseURI
()
{
return
'/herald/'
;
}
public
function
getIconName
()
{
return
'herald'
;
}
public
function
getShortDescription
()
{
return
pht
(
'Create Notification Rules'
);
}
public
function
getTitleGlyph
()
{
return
"
\x
E2
\x
98
\x
BF"
;
}
public
function
getHelpURI
()
{
return
PhabricatorEnv
::
getDoclink
(
'article/Herald_User_Guide.html'
);
}
public
function
getFlavorText
()
{
return
pht
(
'Watch for danger!'
);
}
public
function
getApplicationGroup
()
{
return
self
::
GROUP_ORGANIZATION
;
}
public
function
getRoutes
()
{
return
array
(
'/herald/'
=>
array
(
'(?:query/(?P<queryKey>[^/]+)/)?'
=>
'HeraldRuleListController'
,
'new/(?:(?P<type>[^/]+)/(?:(?P<rule_type>[^/]+)/)?)?'
=>
'HeraldNewController'
,
'rule/(?P<id>[1-9]
\d
*)/'
=>
'HeraldRuleViewController'
,
'edit/(?:(?P<id>[1-9]
\d
*)/)?'
=>
'HeraldRuleController'
,
'history/(?:(?P<id>[1-9]
\d
*)/)?'
=>
'HeraldRuleEditHistoryController'
,
'delete/(?P<id>[1-9]
\d
*)/'
=>
'HeraldDeleteController'
,
'test/'
=>
'HeraldTestConsoleController'
,
'transcript/'
=>
'HeraldTranscriptListController'
,
'transcript/(?P<id>[1-9]
\d
*)/(?:(?P<filter>
\w
+)/)?'
=>
'HeraldTranscriptController'
,
),
);
}
protected
function
getCustomCapabilities
()
{
return
array
(
self
::
CAN_CREATE_RULE
=>
array
(
'label'
=>
pht
(
'Can Create Rules'
),
),
self
::
CAN_CREATE_GLOBAL_RULE
=>
array
(
'label'
=>
pht
(
'Can Create Global Rules'
),
'caption'
=>
pht
(
'Global rules can bypass access controls.'
),
'default'
=>
PhabricatorPolicies
::
POLICY_ADMIN
,
),
);
}
}
Event Timeline
Log In to Comment