mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 01:04:12 +02:00
IcingaZone: it works, one less helper method
This commit is contained in:
parent
6b23ba28be
commit
8dc39ccb89
@ -17,6 +17,7 @@ class IcingaZone extends IcingaObject
|
||||
);
|
||||
|
||||
protected $booleans = array(
|
||||
// Global is a reserved word in SQL, column name was prefixed
|
||||
'is_global' => 'global'
|
||||
);
|
||||
|
||||
@ -26,14 +27,4 @@ class IcingaZone extends IcingaObject
|
||||
{
|
||||
return $this->renderZoneProperty($this->parent_zone_id, 'parent_zone');
|
||||
}
|
||||
|
||||
protected function renderIs_global()
|
||||
{
|
||||
// Global is a reserved word in SQL, column name was prefixed
|
||||
if ($this->is_global === 'y') {
|
||||
return c::renderKeyValue('global', c::renderBoolean($this->is_global));
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user