Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96155316
PhabricatorSlowvoteController.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
Mon, Dec 23, 06:21
Size
1021 B
Mime Type
text/x-php
Expires
Wed, Dec 25, 06:21 (2 d)
Engine
blob
Format
Raw Data
Handle
23126808
Attached To
rPH Phabricator
PhabricatorSlowvoteController.php
View Options
<?php
/**
* @group slowvote
*/
abstract
class
PhabricatorSlowvoteController
extends
PhabricatorController
{
public
function
buildSideNavView
(
$for_app
=
false
)
{
$user
=
$this
->
getRequest
()->
getUser
();
$nav
=
new
AphrontSideNavFilterView
();
$nav
->
setBaseURI
(
new
PhutilURI
(
$this
->
getApplicationURI
()));
if
(
$for_app
)
{
$nav
->
addFilter
(
''
,
pht
(
'Create Poll'
),
$this
->
getApplicationURI
(
'create/'
));
}
id
(
new
PhabricatorSlowvoteSearchEngine
())
->
setViewer
(
$user
)
->
addNavigationItems
(
$nav
->
getMenu
());
$nav
->
selectFilter
(
null
);
return
$nav
;
}
public
function
buildApplicationMenu
()
{
return
$this
->
buildSideNavView
(
true
)->
getMenu
();
}
public
function
buildApplicationCrumbs
()
{
$crumbs
=
parent
::
buildApplicationCrumbs
();
$crumbs
->
addAction
(
id
(
new
PHUIListItemView
())
->
setName
(
pht
(
'Create Poll'
))
->
setHref
(
$this
->
getApplicationURI
(
'create/'
))
->
setIcon
(
'fa-plus-square'
));
return
$crumbs
;
}
}
Event Timeline
Log In to Comment