Piwik\Archive\DataTableFactory::prettifyIndexLabel PHP Метод

prettifyIndexLabel() приватный Метод

Returns the pretty version of an index label.
private prettifyIndexLabel ( string $labelType, string $label ) : string
$labelType string eg, 'site', 'period', etc.
$label string eg, '0', '1', '2012-01-01,2012-01-31', etc.
Результат string
    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;
    }