piwik/core/Archive/DataTableFactory.php
/**
     * Creates a DataTable for every record in an archive data row and puts them
     * in a DataTable\Map instance.
     *
     * @param array $blobRow
     * @return DataTable\Map
     */
Creates a DataTable for every record in an archive data row and puts them
in a DataTable\Map instance.

@param array $blobRow
@return DataTable\Map
Creates a DataTable for every record in an archive data row and puts them in a DataTable \ Map instance . @param array $blobRow @return DataTable \ Map
private function makeIndexedByRecordNameDataTable($blobRow)
    {
        $table = new DataTable\Map();
        $table->setKeyName('recordName');
        $tableMetadata = DataCollection::getDataRowMetadata($blobRow);
        foreach ($blobRow as $name => $blob) {
            $newTable = DataTable::fromSerializedArray($blob);
            $newTable->setAllTableMetadata($tableMetadata);
            $table->addTable($newTable, $name);
        }
        return $table;
    }
private function makeIndexedByRecordNameDataTable ( $ blobRow ) { $ table = new DataTable \ Map ( ) ; $ table -> setKeyName ( 'recordName' ) ; $ tableMetadata = DataCollection :: getDataRowMetadata ( $ blobRow ) ; foreach ( $ blobRow as $ name => $ blob ) { $ newTable = DataTable :: fromSerializedArray ( $ blob ) ; $ newTable -> setAllTableMetadata ( $ tableMetadata ) ; $ table -> addTable ( $ newTable , $ name ) ; } return $ table ; }
Creates a DataTable for every record in an archive data row and puts them
 in a DataTable\Map instance.
Creates a DataTable for every record in an archive data row and puts them in a DataTable \ Map instance .