parent
f7b0e6956d
commit
1643ec4358
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue