array( 'order' => self::SORT_ASC ), 'host_severity' => array( 'columns' => array( 'host_severity', 'host_last_state_change DESC', 'host_display_name ASC' ), 'order' => self::SORT_DESC ), 'host_address' => array( 'columns' => array( 'host_ipv4' ), 'order' => self::SORT_ASC ), 'host_last_state_change' => array( 'order' => self::SORT_ASC ) ); } /** * {@inheritdoc} */ public function isValidFilterTarget($column) { if ($column[0] === '_' && preg_match('/^_(?:host|service)_/', $column) ) { return true; } return parent::isValidFilterTarget($column); } }