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(
|
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 '';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue