Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F64511546
PhabricatorCalendarApplication.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
Mon, May 27, 10:12
Size
1 KB
Mime Type
text/x-php
Expires
Wed, May 29, 10:12 (2 d)
Engine
blob
Format
Raw Data
Handle
17914816
Attached To
rPH Phabricator
PhabricatorCalendarApplication.php
View Options
<?php
final
class
PhabricatorCalendarApplication
extends
PhabricatorApplication
{
public
function
getName
()
{
return
pht
(
'Calendar'
);
}
public
function
getShortDescription
()
{
return
pht
(
'Upcoming Events'
);
}
public
function
getFlavorText
()
{
return
pht
(
'Never miss an episode ever again.'
);
}
public
function
getBaseURI
()
{
return
'/calendar/'
;
}
public
function
getFontIcon
()
{
return
'fa-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
isPrototype
()
{
return
true
;
}
public
function
getRemarkupRules
()
{
return
array
(
new
PhabricatorCalendarRemarkupRule
(),
);
}
public
function
getRoutes
()
{
return
array
(
'/E(?P<id>[1-9]
\d
*)'
=>
'PhabricatorCalendarEventViewController'
,
'/calendar/'
=>
array
(
''
=>
'PhabricatorCalendarViewController'
,
'all/'
=>
'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'
))
->
setIcon
(
'fa-calendar'
)
->
setHref
(
$this
->
getBaseURI
().
'event/create/'
);
$items
[]
=
$item
;
return
$items
;
}
}
Event Timeline
Log In to Comment