DataView\Hoststatus: Adjust how to handle filter columns

refs #9029
This commit is contained in:
Johannes Meyer 2015-08-17 13:46:16 +02:00
parent f7b0e6956d
commit 1643ec4358
1 changed files with 2 additions and 17 deletions

View File

@ -64,7 +64,7 @@ class HostStatus extends DataView
/**
* {@inheritdoc}
*/
public function getFilterColumns()
public function getStaticFilterColumns()
{
return array(
'host',
@ -83,9 +83,7 @@ class HostStatus extends DataView
}
/**
* The sort rules for this query
*
* @return array
* {@inheritdoc}
*/
public function getSortRules()
{
@ -112,17 +110,4 @@ class HostStatus extends DataView
)
);
}
/**
* {@inheritdoc}
*/
public function isValidFilterTarget($column)
{
if ($column[0] === '_'
&& preg_match('/^_(?:host|service)_/', $column)
) {
return true;
}
return parent::isValidFilterTarget($column);
}
}