icingaweb2-module-director/library/Director/Objects/IcingaEndpoint.php

38 lines
905 B
PHP
Raw Normal View History

2015-06-01 17:26:09 +02:00
<?php
namespace Icinga\Module\Director\Objects;
class IcingaEndpoint extends IcingaObject
{
protected $table = 'icinga_endpoint';
2015-06-29 11:11:56 +02:00
protected $supportsImports = true;
2015-06-01 17:26:09 +02:00
protected $defaultProperties = array(
'id' => null,
'zone_id' => null,
'object_name' => null,
'object_type' => null,
'disabled' => 'n',
2015-12-08 08:29:04 +01:00
'host' => null,
2015-06-01 17:26:09 +02:00
'port' => null,
'log_duration' => null,
'apiuser_id' => null,
2015-06-01 17:26:09 +02:00
);
protected $relations = array(
'zone' => 'IcingaZone',
'apiuser' => 'IcingaApiUser',
);
protected function renderLog_duration()
{
2015-12-03 18:02:57 +01:00
return $this->renderPropertyAsSeconds('log_duration');
}
protected function renderApiuser_id()
{
return '';
}
2015-06-01 17:26:09 +02:00
}