Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 26 additions & 3 deletions inc/config.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,19 @@
**/
class PluginTreeviewConfig extends CommonDBTM {

static $types = ['Computer', 'Monitor', 'NetworkEquipment', 'Peripheral', 'Phone', 'Printer',
'Software'];
static $types = [
'Computer',
'Monitor',
'NetworkEquipment',
'Peripheral',
'Phone',
'Printer',
'Software',
'Rack',
'Enclosure',
'PDU',
'PassiveDCEquipment',
];

/**
* Display name of itemtype
Expand Down Expand Up @@ -221,6 +232,18 @@ static function getPicbyType($type) {
case 'Phone' :
$pic = 'pics/phone.png';
break;
case 'Rack' :
$pic = 'pics/rack.png';
break;
case 'PDU' :
$pic = 'pics/pdu.png';
break;
case 'Enclosure' :
$pic = 'pics/enclosure.png';
break;
case 'PassiveDCEquipment' :
$pic = 'pics/passivedcequipment.png';
break;
}
//Like $PLUGIN_HOOKS['treeview']['PluginExampleExample'] = '../example/pics/mypic.png';
if (in_array($type, self::$types) && isPluginItemtype($type)) {
Expand Down Expand Up @@ -540,4 +563,4 @@ function getNodesFromDb() {
echo "d.openTo(" .$nodes[count($nodes)-1]. ");\n";
}
}
}
}
Binary file added pics/enclosure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pics/passivedcequipment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pics/pdu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pics/rack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.