static function getItem_DeviceType() { $devicetype = get_called_class(); if ($plug = isPluginItemType($devicetype)) { return 'Plugin' . $plug['plugin'] . 'Item_' . $plug['class']; } return "Item_{$devicetype}"; }