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

43 lines
1002 B
PHP
Raw Normal View History

<?php
namespace Icinga\Module\Director\Objects;
use Icinga\Module\Director\IcingaConfig\IcingaConfigHelper as c;
2015-06-09 10:35:02 +02:00
class IcingaTimePeriod extends IcingaObject
{
protected $table = 'icinga_timeperiod';
protected $defaultProperties = array(
'id' => null,
'zone_id' => null,
'object_name' => null,
'object_type' => null,
'disabled' => 'n',
'display_name' => null,
'update_method' => null,
);
2015-06-26 16:45:44 +02:00
protected $supportsImports = true;
protected $supportsRanges = true;
2016-04-01 17:18:09 +02:00
protected $relations = array(
'zone' => 'IcingaZone',
);
/**
* 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);
}
}