piwik/core/Archive/DataTableFactory.php
/**
     * Converts site IDs and period string ranges into Site instances and
     * Period instances in DataTable metadata.
     */
Converts site IDs and period string ranges into Site instances and
Period instances in DataTable metadata.
Converts site IDs and period string ranges into Site instances and Period instances in DataTable metadata .
private function transformMetadata(DataTableInterface $table)
    {
        $periods = $this->periods;
        $table->filter(function (DataTable $table) use ($periods) {
            $table->setMetadata(DataTableFactory::TABLE_METADATA_SITE_INDEX, new Site($table->getMetadata(DataTableFactory::TABLE_METADATA_SITE_INDEX)));
            $table->setMetadata(DataTableFactory::TABLE_METADATA_PERIOD_INDEX, $periods[$table->getMetadata(DataTableFactory::TABLE_METADATA_PERIOD_INDEX)]);
        });
    }
private function transformMetadata ( DataTableInterface $ table ) { $ periods = $ this -> periods ; $ table -> filter ( function ( DataTable $ table ) use ( $ periods ) { $ table -> setMetadata ( DataTableFactory :: TABLE_METADATA_SITE_INDEX , new Site ( $ table -> getMetadata ( DataTableFactory :: TABLE_METADATA_SITE_INDEX ) ) ) ; $ table -> setMetadata ( DataTableFactory :: TABLE_METADATA_PERIOD_INDEX , $ periods [ $ table -> getMetadata ( DataTableFactory :: TABLE_METADATA_PERIOD_INDEX ) ] ) ; } ) ; }
Converts site IDs and period string ranges into Site instances and
 Period instances in DataTable metadata.
Converts site IDs and period string ranges into Site instances and Period instances in DataTable metadata .