mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2026-06-03 14:00:10 -04:00
IcingaZone: it works, one less helper method
This commit is contained in:
parent
6b23ba28be
commit
8dc39ccb89
1 changed files with 1 additions and 10 deletions
|
|
@ -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…
Reference in a new issue