Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F110624434
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, Apr 27, 05:21
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Apr 29, 05:21 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25811274
Attached To
rPH Phabricator
PhabricatorCalendarIcon.php
View Options
<?php
final
class
PhabricatorCalendarIcon
extends
Phobject
{
public
static
function
getIconMap
()
{
return
array
(
'fa-briefcase'
=>
pht
(
'Briefcase'
),
'fa-tags'
=>
pht
(
'Tag'
),
'fa-folder'
=>
pht
(
'Folder'
),
'fa-users'
=>
pht
(
'Team'
),
'fa-bug'
=>
pht
(
'Bug'
),
'fa-trash-o'
=>
pht
(
'Garbage'
),
'fa-calendar'
=>
pht
(
'Deadline'
),
'fa-flag-checkered'
=>
pht
(
'Goal'
),
'fa-envelope'
=>
pht
(
'Communication'
),
'fa-truck'
=>
pht
(
'Release'
),
'fa-lock'
=>
pht
(
'Policy'
),
'fa-umbrella'
=>
pht
(
'An Umbrella'
),
'fa-cloud'
=>
pht
(
'The Cloud'
),
'fa-building'
=>
pht
(
'Company'
),
'fa-credit-card'
=>
pht
(
'Accounting'
),
'fa-flask'
=>
pht
(
'Experimental'
),
);
}
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