Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97582819
PhabricatorCalendarIcon.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
Sun, Jan 5, 11:17
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Jan 7, 11:17 (2 d)
Engine
blob
Format
Raw Data
Handle
23430841
Attached To
rPH Phabricator
PhabricatorCalendarIcon.php
View Options
<?php
final
class
PhabricatorCalendarIcon
extends
Phobject
{
public
static
function
getIconMap
()
{
return
array
(
'fa-calendar'
=>
pht
(
'Default'
),
'fa-glass'
=>
pht
(
'Party'
),
'fa-plane'
=>
pht
(
'Travel'
),
'fa-plus-square'
=>
pht
(
'Health / Appointment'
),
'fa-rocket'
=>
pht
(
'Sabatical / Leave'
),
'fa-home'
=>
pht
(
'Working From Home'
),
'fa-tree'
=>
pht
(
'Holiday'
),
'fa-gamepad'
=>
pht
(
'Staycation'
),
'fa-coffee'
=>
pht
(
'Coffee Meeting'
),
'fa-film'
=>
pht
(
'Movie'
),
'fa-users'
=>
pht
(
'Meeting'
),
'fa-cutlery'
=>
pht
(
'Meal'
),
'fa-paw'
=>
pht
(
'Pet Activity'
),
'fa-institution'
=>
pht
(
'Official Business'
),
'fa-bus'
=>
pht
(
'Field Trip'
),
'fa-microphone'
=>
pht
(
'Conference'
),
);
}
public
static
function
getLabel
(
$key
)
{
$map
=
self
::
getIconMap
();
return
$map
[
$key
];
}
public
static
function
getAPIName
(
$key
)
{
return
substr
(
$key
,
3
);
}
public
static
function
renderIconForChooser
(
$icon
)
{
$calendar_icons
=
self
::
getIconMap
();
return
phutil_tag
(
'span'
,
array
(),
array
(
id
(
new
PHUIIconView
())->
setIconFont
(
$icon
),
' '
,
idx
(
$calendar_icons
,
$icon
,
pht
(
'Unknown Icon'
)),
));
}
}
Event Timeline
Log In to Comment