2015-06-01 17:00:02 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Icinga\Module\Director\Objects;
|
|
|
|
|
|
|
|
class IcingaUser extends IcingaObject
|
|
|
|
{
|
|
|
|
protected $table = 'icinga_user';
|
|
|
|
|
|
|
|
protected $defaultProperties = array(
|
|
|
|
'id' => null,
|
|
|
|
'object_name' => null,
|
2016-02-16 12:17:50 +01:00
|
|
|
'object_type' => null,
|
|
|
|
'disabled' => 'n',
|
2015-06-01 17:00:02 +02:00
|
|
|
'display_name' => null,
|
|
|
|
'email' => null,
|
|
|
|
'pager' => null,
|
|
|
|
'enable_notifications' => null,
|
|
|
|
'period_id' => null,
|
|
|
|
'zone_id' => null,
|
|
|
|
);
|
2015-06-12 11:11:51 +02:00
|
|
|
|
2015-06-16 17:51:01 +02:00
|
|
|
protected $supportsGroups = true;
|
|
|
|
|
2015-06-24 10:13:27 +02:00
|
|
|
protected $supportsCustomVars = true;
|
|
|
|
|
2015-06-26 16:36:18 +02:00
|
|
|
protected $supportsImports = true;
|
|
|
|
|
2016-02-26 11:58:37 +01:00
|
|
|
protected $booleans = array(
|
2016-02-26 13:10:42 +01:00
|
|
|
'enable_notifications' => 'enable_notifications'
|
2016-02-26 11:58:37 +01:00
|
|
|
);
|
2016-02-28 17:02:57 +01:00
|
|
|
|
|
|
|
protected $states = array();
|
|
|
|
|
|
|
|
protected function setStates($value)
|
|
|
|
{
|
|
|
|
$states = $value;
|
|
|
|
sort($states);
|
|
|
|
if ($this->states !== $states) {
|
|
|
|
$this->states = $states;
|
|
|
|
$this->hasBeenModified = true;
|
|
|
|
}
|
|
|
|
}
|
2015-06-01 17:00:02 +02:00
|
|
|
}
|