mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
IcingaObjectGroup: unify group object logic
This commit is contained in:
parent
d3130d0494
commit
d8a3fb68bd
@ -2,17 +2,7 @@
|
||||
|
||||
namespace Icinga\Module\Director\Objects;
|
||||
|
||||
class IcingaHostGroup extends IcingaObject
|
||||
class IcingaHostGroup extends IcingaObjectGroup
|
||||
{
|
||||
protected $table = 'icinga_hostgroup';
|
||||
|
||||
protected $supportsImports = true;
|
||||
|
||||
protected $defaultProperties = array(
|
||||
'id' => null,
|
||||
'object_name' => null,
|
||||
'object_type' => null,
|
||||
'disabled' => 'n',
|
||||
'display_name' => null,
|
||||
);
|
||||
}
|
||||
|
16
library/Director/Objects/IcingaObjectGroup.php
Normal file
16
library/Director/Objects/IcingaObjectGroup.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace Icinga\Module\Director\Objects;
|
||||
|
||||
abstract class IcingaObjectGroup extends IcingaObject
|
||||
{
|
||||
protected $supportsImports = true;
|
||||
|
||||
protected $defaultProperties = array(
|
||||
'id' => null,
|
||||
'object_name' => null,
|
||||
'object_type' => null,
|
||||
'disabled' => 'n',
|
||||
'display_name' => null,
|
||||
);
|
||||
}
|
@ -2,17 +2,7 @@
|
||||
|
||||
namespace Icinga\Module\Director\Objects;
|
||||
|
||||
class IcingaServiceGroup extends IcingaObject
|
||||
class IcingaServiceGroup extends IcingaObjectGroup
|
||||
{
|
||||
protected $table = 'icinga_servicegroup';
|
||||
|
||||
protected $supportsImports = true;
|
||||
|
||||
protected $defaultProperties = array(
|
||||
'id' => null,
|
||||
'object_name' => null,
|
||||
'object_type' => null,
|
||||
'disabled' => 'n',
|
||||
'display_name' => null,
|
||||
);
|
||||
}
|
||||
|
@ -2,18 +2,7 @@
|
||||
|
||||
namespace Icinga\Module\Director\Objects;
|
||||
|
||||
class IcingaUserGroup extends IcingaObject
|
||||
class IcingaUserGroup extends IcingaObjectGroup
|
||||
{
|
||||
protected $table = 'icinga_usergroup';
|
||||
|
||||
protected $supportsImports = true;
|
||||
|
||||
protected $defaultProperties = array(
|
||||
'id' => null,
|
||||
'object_name' => null,
|
||||
'object_type' => null,
|
||||
'disabled' => 'n',
|
||||
'display_name' => null,
|
||||
'zone_id' => null,
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user