Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2331990
PhabricatorApplicationCalendar.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
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'
,
),
),
);
}
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
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Sep 16, 7:43 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
444920
Default Alt Text
PhabricatorApplicationCalendar.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment