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

56 lines
1.4 KiB
PHP
Raw Permalink Normal View History

2015-06-01 11:00:02 -04:00
<?php
namespace Icinga\Module\Director\Objects;
use Icinga\Module\Director\Db;
use Icinga\Module\Director\DirectorObject\Automation\ExportInterface;
use Icinga\Module\Director\Exception\DuplicateKeyException;
class IcingaUser extends IcingaObject implements ExportInterface
2015-06-01 11:00:02 -04:00
{
protected $table = 'icinga_user';
protected $defaultProperties = array(
'id' => null,
2021-10-05 12:19:01 -04:00
'uuid' => null,
2015-06-01 11:00:02 -04:00
'object_name' => null,
'object_type' => null,
'disabled' => 'n',
2015-06-01 11:00:02 -04:00
'display_name' => null,
'email' => null,
'pager' => null,
'enable_notifications' => null,
'period_id' => null,
'zone_id' => null,
);
2021-10-05 12:19:01 -04:00
protected $uuidColumn = 'uuid';
protected $supportsGroups = true;
protected $supportsCustomVars = true;
protected $supportsFields = true;
2015-06-26 10:36:18 -04:00
protected $supportsImports = true;
2016-02-26 05:58:37 -05:00
protected $booleans = array(
2016-02-26 07:10:42 -05:00
'enable_notifications' => 'enable_notifications'
2016-02-26 05:58:37 -05:00
);
protected $relatedSets = array(
'states' => 'StateFilterSet',
'types' => 'TypeFilterSet',
);
2016-04-01 11:18:09 -04:00
protected $relations = array(
'period' => 'IcingaTimePeriod',
'zone' => 'IcingaZone',
);
public function getUniqueIdentifier()
{
return $this->getObjectName();
}
2015-06-01 11:00:02 -04:00
}