Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F549262
PhabricatorSlowvoteApplication.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorSlowvoteApplication.php
View Options
<?php
final
class
PhabricatorSlowvoteApplication
extends
PhabricatorApplication
{
public
function
getBaseURI
()
{
return
'/vote/'
;
}
public
function
getIcon
()
{
return
'fa-bar-chart'
;
}
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
getHelpDocumentationArticles
(
PhabricatorUser
$viewer
)
{
return
array
(
array
(
'name'
=>
pht
(
'Slowvote User Guide'
),
'href'
=>
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
getMonograms
()
{
return
array
(
'V'
);
}
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'
,
),
);
}
protected
function
getCustomCapabilities
()
{
return
array
(
PhabricatorSlowvoteDefaultViewCapability
::
CAPABILITY
=>
array
(
'caption'
=>
pht
(
'Default view policy for new polls.'
),
'template'
=>
PhabricatorSlowvotePollPHIDType
::
TYPECONST
,
'capability'
=>
PhabricatorPolicyCapability
::
CAN_VIEW
,
),
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 2:05 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
96915
Default Alt Text
PhabricatorSlowvoteApplication.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment