IcingaCommand: render methods_execute as execute

This commit is contained in:
Thomas Gelf 2015-06-11 22:01:12 +02:00
parent 24fff442e0
commit eaea917c1f
1 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,8 @@
namespace Icinga\Module\Director\Objects;
use Icinga\Module\Director\IcingaConfigHelper as c;
class IcingaCommand extends IcingaObject
{
protected $table = 'icinga_command';
@ -15,4 +17,10 @@ class IcingaCommand extends IcingaObject
'zone_id' => null,
'object_type' => null,
);
protected function renderMethods_execute()
{
// Execute is a reserved word in SQL, column name was prefixed
return c::renderKeyValue('execute', $this->methods_execute, ' ');
}
}