Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92660176
PhabricatorCountdownController.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, Nov 22, 12:21
Size
1003 B
Mime Type
text/x-php
Expires
Sun, Nov 24, 12:21 (2 d)
Engine
blob
Format
Raw Data
Handle
22480797
Attached To
rPH Phabricator
PhabricatorCountdownController.php
View Options
<?php
/**
* @group countdown
*/
abstract
class
PhabricatorCountdownController
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
(
'create'
,
pht
(
'Create Countdown'
));
}
id
(
new
PhabricatorCountdownSearchEngine
())
->
setViewer
(
$user
)
->
addNavigationItems
(
$nav
->
getMenu
());
$nav
->
selectFilter
(
null
);
return
$nav
;
}
public
function
buildApplicationMenu
()
{
return
$this
->
buildSideNavView
(
$for_app
=
true
)->
getMenu
();
}
public
function
buildApplicationCrumbs
()
{
$crumbs
=
parent
::
buildApplicationCrumbs
();
$crumbs
->
addAction
(
id
(
new
PHUIListItemView
())
->
setName
(
pht
(
'Create Countdown'
))
->
setHref
(
$this
->
getApplicationURI
(
'edit/'
))
->
setIcon
(
'fa-plus-square'
));
return
$crumbs
;
}
}
Event Timeline
Log In to Comment