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

View File

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