2015-06-03 13:02:44 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Icinga\Module\Director\Objects;
|
|
|
|
|
2016-03-21 13:35:00 +01:00
|
|
|
use Icinga\Module\Director\IcingaConfig\IcingaConfigHelper as c;
|
|
|
|
|
2015-06-09 10:35:02 +02:00
|
|
|
class IcingaTimePeriod extends IcingaObject
|
2015-06-03 13:02:44 +02:00
|
|
|
{
|
|
|
|
protected $table = 'icinga_timeperiod';
|
|
|
|
|
|
|
|
protected $defaultProperties = array(
|
2015-07-01 15:15:49 +02:00
|
|
|
'id' => null,
|
|
|
|
'zone_id' => null,
|
|
|
|
'object_name' => null,
|
2016-02-16 12:17:50 +01:00
|
|
|
'object_type' => null,
|
|
|
|
'disabled' => 'n',
|
2015-07-01 15:15:49 +02:00
|
|
|
'display_name' => null,
|
|
|
|
'update_method' => null,
|
2015-06-03 13:02:44 +02:00
|
|
|
);
|
2015-06-26 16:45:44 +02:00
|
|
|
|
|
|
|
protected $supportsImports = true;
|
2015-07-01 15:15:49 +02:00
|
|
|
|
|
|
|
protected $supportsRanges = true;
|
2016-03-21 13:35:00 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Render update property
|
|
|
|
*
|
|
|
|
* Avoid complaints for method names with underscore:
|
|
|
|
* @codingStandardsIgnoreStart
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function renderUpdate_method()
|
|
|
|
{
|
|
|
|
// @codingStandardsIgnoreEnd
|
|
|
|
return c::renderKeyValue('update', $this->update_method);
|
|
|
|
}
|
2015-06-03 13:02:44 +02:00
|
|
|
}
|