Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102522324
PhabricatorSlowvoteApplication.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
Fri, Feb 21, 15:01
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Feb 23, 15:01 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24340537
Attached To
rPH Phabricator
PhabricatorSlowvoteApplication.php
View Options
<?php
final
class
PhabricatorSlowvoteApplication
extends
PhabricatorApplication
{
public
function
getBaseURI
()
{
return
'/vote/'
;
}
public
function
getIconName
()
{
return
'slowvote'
;
}
public
function
getName
()
{
return
pht
(
'Slowvote'
);
}
public
function
getShortDescription
()
{
return
pht
(
'Conduct Polls'
);
}
public
function
getTitleGlyph
()
{
return
"
\x
E2
\x
9C
\x
94"
;
}
public
function
getHelpURI
()
{
return
PhabricatorEnv
::
getDoclink
(
'Slowvote User Guide'
);
}
public
function
getFlavorText
()
{
return
pht
(
'Design by committee.'
);
}
public
function
getApplicationGroup
()
{
return
self
::
GROUP_UTILITIES
;
}
public
function
getRemarkupRules
()
{
return
array
(
new
SlowvoteRemarkupRule
(),
);
}
public
function
getRoutes
()
{
return
array
(
'/V(?P<id>[1-9]
\d
*)'
=>
'PhabricatorSlowvotePollController'
,
'/vote/'
=>
array
(
'(?:query/(?P<queryKey>[^/]+)/)?'
=>
'PhabricatorSlowvoteListController'
,
'create/'
=>
'PhabricatorSlowvoteEditController'
,
'edit/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorSlowvoteEditController'
,
'(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorSlowvoteVoteController'
,
'comment/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorSlowvoteCommentController'
,
'close/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorSlowvoteCloseController'
,
),
);
}
public
function
getCustomCapabilities
()
{
return
array
(
PhabricatorSlowvoteDefaultViewCapability
::
CAPABILITY
=>
array
(
'caption'
=>
pht
(
'Default view policy for new polls.'
),
),
);
}
}
Event Timeline
Log In to Comment