IcingaObject: a few more hardcoded class names

This commit is contained in:
Thomas Gelf 2015-12-10 18:40:08 +01:00
parent d0359683cd
commit 75bbf9c7da
1 changed files with 5 additions and 1 deletions

View File

@ -931,9 +931,13 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
$prefix = 'Director';
}
// TODO: Provide a more sophisticated solution
if ($type === 'hostgroup') {
// TODO: Provide a more sophisticated solution
$type = 'hostGroup';
} elseif ($type === 'usergroup') {
$type = 'userGroup';
} elseif ($type === 'servicegroup') {
$type = 'serviceGroup';
}
return 'Icinga\\Module\\Director\\Objects\\' . $prefix . ucfirst($type);