3 final class PhabricatorPeopleIconSet
4 extends PhabricatorIconSet
{
6 const ICONSETKEY
= 'people';
8 public function getSelectIconTitleText() {
9 return pht('Choose User Icon');
12 protected function newIcons() {
13 $specifications = self
::getIconSpecifications();
16 foreach ($specifications as $spec) {
17 $icons[] = id(new PhabricatorIconSetIcon())
18 ->setKey($spec['key'])
19 ->setIcon($spec['icon'])
20 ->setLabel($spec['name']);
26 public static function getDefaultIconKey() {
27 $specifications = self
::getIconSpecifications();
29 foreach ($specifications as $spec) {
30 if (idx($spec, 'default')) {
38 public static function getIconIcon($key) {
39 $specifications = self
::getIconSpecifications();
40 $map = ipull($specifications, 'icon', 'key');
41 return idx($map, $key);
44 public static function getIconName($key) {
45 $specifications = self
::getIconSpecifications();
46 $map = ipull($specifications, 'name', 'key');
47 return idx($map, $key);
50 private static function getIconSpecifications() {
51 return self
::getDefaultSpecifications();
54 private static function getDefaultSpecifications() {
59 'name' => pht('User'),
63 'key' => 'engineering',
65 'name' => pht('Engineering'),
68 'key' => 'operations',
69 'icon' => 'fa-space-shuttle',
70 'name' => pht('Operations'),
75 'name' => pht('Resources'),
79 'icon' => 'fa-camera-retro',
80 'name' => pht('Design'),
84 'icon' => 'fa-headphones',
85 'name' => pht('Musician'),
89 'icon' => 'fa-user-secret',
94 'icon' => 'fa-android',
98 'key' => 'relationships',
100 'name' => pht('Relationships'),
103 'key' => 'administration',
105 'name' => pht('Administration'),
109 'icon' => 'fa-shield',
110 'name' => pht('Security'),
113 'key' => 'logistics',
114 'icon' => 'fa-truck',
115 'name' => pht('Logistics'),
119 'icon' => 'fa-flask',
120 'name' => pht('Research'),
124 'icon' => 'fa-bar-chart-o',
125 'name' => pht('Analysis'),
128 'key' => 'executive',
129 'icon' => 'fa-angle-double-up',
130 'name' => pht('Executive'),
135 'name' => pht('Animal'),