2015-04-24 14:26:44 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Icinga\Module\Director\Objects;
|
|
|
|
|
2015-06-11 22:44:17 +02:00
|
|
|
use Icinga\Module\Director\IcingaConfig\IcingaConfigHelper as c;
|
2015-06-11 22:01:12 +02:00
|
|
|
|
2015-04-24 15:57:01 +02:00
|
|
|
class IcingaCommand extends IcingaObject
|
2015-04-24 14:26:44 +02:00
|
|
|
{
|
|
|
|
protected $table = 'icinga_command';
|
|
|
|
|
|
|
|
protected $defaultProperties = array(
|
|
|
|
'id' => null,
|
|
|
|
'object_name' => null,
|
|
|
|
'methods_execute' => null,
|
|
|
|
'command' => null,
|
|
|
|
'timeout' => null,
|
|
|
|
'zone_id' => null,
|
|
|
|
'object_type' => null,
|
|
|
|
);
|
2015-06-11 22:01:12 +02:00
|
|
|
|
2015-06-24 10:13:27 +02:00
|
|
|
protected $supportsCustomVars = true;
|
|
|
|
|
2015-06-11 22:01:12 +02:00
|
|
|
protected function renderMethods_execute()
|
|
|
|
{
|
|
|
|
// Execute is a reserved word in SQL, column name was prefixed
|
2015-06-11 23:02:43 +02:00
|
|
|
return c::renderKeyValue('execute', $this->methods_execute);
|
2015-06-11 22:01:12 +02:00
|
|
|
}
|
2015-04-24 14:26:44 +02:00
|
|
|
}
|