Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93467610
PhabricatorCalendarController.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 29, 00:19
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Dec 1, 00:19 (2 d)
Engine
blob
Format
Raw Data
Handle
22646657
Attached To
rPH Phabricator
PhabricatorCalendarController.php
View Options
<?php
abstract
class
PhabricatorCalendarController
extends
PhabricatorController
{
protected
function
buildSideNavView
(
PhabricatorCalendarEvent
$status
=
null
)
{
$nav
=
new
AphrontSideNavFilterView
();
$nav
->
setBaseURI
(
new
PhutilURI
(
$this
->
getApplicationURI
()));
$nav
->
addLabel
(
pht
(
'Calendar'
));
$nav
->
addFilter
(
'/'
,
pht
(
'My Events'
));
$nav
->
addFilter
(
'all/'
,
pht
(
'View All'
));
$nav
->
addFilter
(
'event/create/'
,
pht
(
'Create Event'
));
if
(
$status
&&
$status
->
getID
())
{
$nav
->
addFilter
(
'event/edit/'
.
$status
->
getID
().
'/'
,
pht
(
'Edit Event'
));
}
$nav
->
addFilter
(
'event/'
,
pht
(
'Upcoming Events'
));
return
$nav
;
}
public
function
buildApplicationMenu
()
{
return
$this
->
buildSideNavView
()->
getMenu
();
}
public
function
buildApplicationCrumbs
()
{
$crumbs
=
parent
::
buildApplicationCrumbs
();
$crumbs
->
addAction
(
id
(
new
PHUIListItemView
())
->
setName
(
pht
(
'Create Event'
))
->
setHref
(
$this
->
getApplicationURI
().
'event/create'
)
->
setIcon
(
'fa-plus-square'
));
return
$crumbs
;
}
}
Event Timeline
Log In to Comment