Skip to content

Commit 3ab5bb5

Browse files
authored
Add DCIM support
1 parent 8093c17 commit 3ab5bb5

5 files changed

Lines changed: 26 additions & 3 deletions

File tree

inc/config.class.php

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,19 @@
3636
**/
3737
class PluginTreeviewConfig extends CommonDBTM {
3838

39-
static $types = ['Computer', 'Monitor', 'NetworkEquipment', 'Peripheral', 'Phone', 'Printer',
40-
'Software'];
39+
static $types = [
40+
'Computer',
41+
'Monitor',
42+
'NetworkEquipment',
43+
'Peripheral',
44+
'Phone',
45+
'Printer',
46+
'Software',
47+
'Rack',
48+
'Enclosure',
49+
'PDU',
50+
'PassiveDCEquipment',
51+
];
4152

4253
/**
4354
* Display name of itemtype
@@ -221,6 +232,18 @@ static function getPicbyType($type) {
221232
case 'Phone' :
222233
$pic = 'pics/phone.png';
223234
break;
235+
case 'Rack' :
236+
$pic = 'pics/rack.png';
237+
break;
238+
case 'PDU' :
239+
$pic = 'pics/pdu.png';
240+
break;
241+
case 'Enclosure' :
242+
$pic = 'pics/enclosure.png';
243+
break;
244+
case 'PassiveDCEquipment' :
245+
$pic = 'pics/passivedcequipment.png';
246+
break;
224247
}
225248
//Like $PLUGIN_HOOKS['treeview']['PluginExampleExample'] = '../example/pics/mypic.png';
226249
if (in_array($type, self::$types) && isPluginItemtype($type)) {
@@ -540,4 +563,4 @@ function getNodesFromDb() {
540563
echo "d.openTo(" .$nodes[count($nodes)-1]. ");\n";
541564
}
542565
}
543-
}
566+
}

pics/enclosure.png

365 Bytes
Loading

pics/passivedcequipment.png

286 Bytes
Loading

pics/pdu.png

172 Bytes
Loading

pics/rack.png

157 Bytes
Loading

0 commit comments

Comments
 (0)