blob: a8c3906027d4db551b1d66bc0e4079d2f6c0b816 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
namespace Icinga\Module\Director\Data;
class PropertiesFilter
{
public static $CUSTOM_PROPERTY = 'CUSTOM_PROPERTY';
public static $HOST_PROPERTY = 'HOST_PROPERTY';
public static $SERVICE_PROPERTY = 'SERVICE_PROPERTY';
protected $blacklist = array(
'id',
'object_name',
'object_type',
'disabled',
'has_agent',
'master_should_connect',
'accept_config',
);
public function match($type, $name, $object = null)
{
return ($type != self::$HOST_PROPERTY || !in_array($name, $this->blacklist));
}
}
|