Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106641458
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
Sat, Mar 29, 04:53
Size
906 B
Mime Type
text/x-php
Expires
Mon, Mar 31, 05:53 (2 d)
Engine
blob
Format
Raw Data
Handle
25242408
Attached To
rPH Phabricator
PhabricatorCountdownController.php
View Options
<?php
/**
* @group countdown
*/
abstract
class
PhabricatorCountdownController
extends
PhabricatorController
{
public
function
buildSideNavView
()
{
$user
=
$this
->
getRequest
()->
getUser
();
$nav
=
new
AphrontSideNavFilterView
();
$nav
->
setBaseURI
(
new
PhutilURI
(
$this
->
getApplicationURI
()));
$nav
->
addFilter
(
''
,
pht
(
'All Countdowns'
),
$this
->
getApplicationURI
(
''
));
$nav
->
addFilter
(
''
,
pht
(
'Create Countdown'
),
$this
->
getApplicationURI
(
'edit/'
));
return
$nav
;
}
public
function
buildApplicationMenu
()
{
return
$this
->
buildSideNavView
()->
getMenu
();
}
public
function
buildApplicationCrumbs
()
{
$crumbs
=
parent
::
buildApplicationCrumbs
();
$crumbs
->
addAction
(
id
(
new
PHUIListItemView
())
->
setName
(
pht
(
'Create Countdown'
))
->
setHref
(
$this
->
getApplicationURI
(
'edit/'
))
->
setIcon
(
'create'
));
return
$crumbs
;
}
}
Event Timeline
Log In to Comment