2015-04-24 14:26:44 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Icinga\Module\Director\Objects;
|
|
|
|
|
2015-06-24 13:41:45 +02:00
|
|
|
use Icinga\Module\Director\IcingaConfig\IcingaConfigHelper as c;
|
|
|
|
|
2015-04-24 15:57:01 +02:00
|
|
|
class IcingaZone extends IcingaObject
|
2015-04-24 14:26:44 +02:00
|
|
|
{
|
|
|
|
protected $table = 'icinga_zone';
|
|
|
|
|
|
|
|
protected $defaultProperties = array(
|
|
|
|
'id' => null,
|
|
|
|
'object_name' => null,
|
|
|
|
'object_type' => null,
|
|
|
|
'parent_zone_id' => null,
|
2015-06-24 13:41:45 +02:00
|
|
|
'is_global' => 'n',
|
2015-04-24 14:26:44 +02:00
|
|
|
);
|
2015-06-08 14:40:46 +02:00
|
|
|
|
2015-11-14 00:03:45 +01:00
|
|
|
protected $booleans = array(
|
2015-11-14 00:19:23 +01:00
|
|
|
// Global is a reserved word in SQL, column name was prefixed
|
2015-11-14 00:03:45 +01:00
|
|
|
'is_global' => 'global'
|
|
|
|
);
|
|
|
|
|
2015-06-29 10:46:32 +02:00
|
|
|
protected $supportsImports = true;
|
|
|
|
|
2015-06-08 14:40:46 +02:00
|
|
|
protected function renderParent_zone_id()
|
|
|
|
{
|
2015-06-08 20:40:51 +02:00
|
|
|
return $this->renderZoneProperty($this->parent_zone_id, 'parent_zone');
|
2015-06-08 14:40:46 +02:00
|
|
|
}
|
2015-04-24 14:26:44 +02:00
|
|
|
}
|