private function hideShowMetrics($columns, $emptyColumns = array())
    {
        if (!is_array($columns)) {
            return $columns;
        }

        // remove columns if hideColumns query parameters exist
        $columnsToRemove = $this->getColumnsToRemove();

        // remove columns if showColumns query parameters exist
        $columnsToKeep = $this->getColumnsToKeep();

        return $this->hideShowMetricsWithParams($columns, $columnsToRemove, $columnsToKeep, $emptyColumns);
    }
private function hideShowMetrics($columns, $emptyColumns = array())
    {
        if (!is_array($columns)) {
            return $columns;
        }

        // remove columns if hideColumns query parameters exist
        $columnsToRemove = $this->getColumnsToRemove();

        // remove columns if showColumns query parameters exist
        $columnsToKeep = $this->getColumnsToKeep();

        return $this->hideShowMetricsWithParams($columns, $columnsToRemove, $columnsToKeep, $emptyColumns);
    }
private function hideShowMetrics ( $ columns , $ emptyColumns = array ( ) ) { if ( ! is_array ( $ columns ) ) { return $ columns ; } // remove columns if hideColumns query parameters exist $ columnsToRemove = $ this -> getColumnsToRemove ( ) ; // remove columns if showColumns query parameters exist $ columnsToKeep = $ this -> getColumnsToKeep ( ) ; return $ this -> hideShowMetricsWithParams ( $ columns , $ columnsToRemove , $ columnsToKeep , $ emptyColumns ) ; }
Removes column names from an array based on the values in the hideColumns,
showColumns query parameters. This is a hack that provides the ColumnDelete
filter functionality in processed reports.

@param array $columns List of metrics shown in a processed report.
@param array $emptyColumns Empty columns from the data table meta data.
@return array Filtered list of metrics.
Removes column names from an array based on the values in the hideColumns showColumns query parameters . This is a hack that provides the ColumnDelete filter functionality in processed reports .