icingaweb2-module-director/library/Director/Objects/IcingaObjectGroup.php

35 lines
770 B
PHP
Raw Normal View History

<?php
namespace Icinga\Module\Director\Objects;
use Icinga\Module\Director\DirectorObject\Automation\ExportInterface;
abstract class IcingaObjectGroup extends IcingaObject implements ExportInterface
{
protected $supportsImports = true;
protected $supportedInLegacy = true;
2021-10-05 18:19:01 +02:00
protected $uuidColumn = 'uuid';
protected $defaultProperties = [
'id' => null,
2021-10-05 18:19:01 +02:00
'uuid' => null,
'object_name' => null,
'object_type' => null,
'disabled' => 'n',
'display_name' => null,
'assign_filter' => null,
];
public function getUniqueIdentifier()
{
return $this->getObjectName();
}
protected function prefersGlobalZone()
{
return true;
}
}