IcingaZone: it works, one less helper method

This commit is contained in:
Thomas Gelf 2015-11-14 00:19:23 +01:00
parent 6b23ba28be
commit 8dc39ccb89
1 changed files with 1 additions and 10 deletions

View File

@ -17,6 +17,7 @@ class IcingaZone extends IcingaObject
); );
protected $booleans = array( protected $booleans = array(
// Global is a reserved word in SQL, column name was prefixed
'is_global' => 'global' 'is_global' => 'global'
); );
@ -26,14 +27,4 @@ class IcingaZone extends IcingaObject
{ {
return $this->renderZoneProperty($this->parent_zone_id, 'parent_zone'); 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 '';
}
}
} }