private function prettifyIndexLabel($labelType, $label)
    {
        if ($labelType == self::TABLE_METADATA_PERIOD_INDEX) { // prettify period labels
            $period = $this->periods[$label];
            $label = $period->getLabel();
            if ($label === 'week' || $label === 'range') {
                return $period->getRangeString();
            }

            return $period->getPrettyString();
        }
        return $label;
    }
private function prettifyIndexLabel($labelType, $label)
    {
        if ($labelType == self::TABLE_METADATA_PERIOD_INDEX) { // prettify period labels
            $period = $this->periods[$label];
            $label = $period->getLabel();
            if ($label === 'week' || $label === 'range') {
                return $period->getRangeString();
            }

            return $period->getPrettyString();
        }
        return $label;
    }
private function prettifyIndexLabel ( $ labelType , $ label ) { if ( $ labelType == self :: TABLE_METADATA_PERIOD_INDEX ) { // prettify period labels $ period = $ this -> periods [ $ label ] ; $ label = $ period -> getLabel ( ) ; if ( $ label === 'week' || $ label === 'range' ) { return $ period -> getRangeString ( ) ; } return $ period -> getPrettyString ( ) ; } return $ label ; }
Returns the pretty version of an index label.

@param string $labelType eg, 'site', 'period', etc.
@param string $label eg, '0', '1', '2012-01-01,2012-01-31', etc.
@return string
Returns the pretty version of an index label .