Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F104143670
PhabricatorApplicationCalendar.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
Thu, Mar 6, 17:48
Size
1 KB
Mime Type
text/x-php
Expires
Sat, Mar 8, 17:48 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
24751522
Attached To
rPH Phabricator
PhabricatorApplicationCalendar.php
View Options
<?php
final
class
PhabricatorApplicationCalendar
extends
PhabricatorApplication
{
public
function
getShortDescription
()
{
return
pht
(
'Dates and Stuff'
);
}
public
function
getFlavorText
()
{
return
pht
(
'Never miss an episode ever again.'
);
}
public
function
getBaseURI
()
{
return
'/calendar/'
;
}
public
function
getIconName
()
{
return
'calendar'
;
}
public
function
getTitleGlyph
()
{
// Unicode has a calendar character but it's in some distant code plane,
// use "keyboard" since it looks vaguely similar.
return
"
\x
E2
\x
8C
\x
A8"
;
}
public
function
getApplicationGroup
()
{
return
self
::
GROUP_COMMUNICATION
;
}
public
function
isBeta
()
{
return
true
;
}
public
function
getRoutes
()
{
return
array
(
'/calendar/'
=>
array
(
''
=>
'PhabricatorCalendarBrowseController'
,
'event/'
=>
array
(
'(?:query/(?P<queryKey>[^/]+)/)?'
=>
'PhabricatorCalendarEventListController'
,
'create/'
=>
'PhabricatorCalendarEventEditController'
,
'edit/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorCalendarEventEditController'
,
'delete/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorCalendarEventDeleteController'
,
'view/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorCalendarEventViewController'
,
),
),
);
}
public
function
getQuickCreateItems
(
PhabricatorUser
$viewer
)
{
$items
=
array
();
$item
=
id
(
new
PHUIListItemView
())
->
setName
(
pht
(
'Calendar Event'
))
->
setAppIcon
(
'calendar-dark'
)
->
setHref
(
$this
->
getBaseURI
().
'event/create/'
);
$items
[]
=
$item
;
return
$items
;
}
}
Event Timeline
Log In to Comment