DataView\Servicegroup: Adjust how to handle filter columns

refs #9029
This commit is contained in:
Johannes Meyer 2015-08-17 14:06:26 +02:00
parent 833e177666
commit 92cece92ab
1 changed files with 1 additions and 17 deletions

View File

@ -3,8 +3,6 @@
namespace Icinga\Module\Monitoring\DataView;
/**
* Service group view */
class Servicegroup extends DataView
{
/**
@ -21,7 +19,7 @@ class Servicegroup extends DataView
/**
* {@inheritdoc}
*/
public function getFilterColumns()
public function getStaticFilterColumns()
{
return array(
'host', 'host_alias', 'host_display_name', 'host_name',
@ -30,18 +28,4 @@ class Servicegroup extends DataView
'servicegroup'
);
}
/**
* {@inheritdoc}
*/
public function isValidFilterTarget($column)
{
if ($column[0] === '_'
&& preg_match('/^_(?:host|service)_/', $column)
) {
return true;
} else {
return parent::isValidFilterTarget($column);
}
}
}