piwik/core/Archive/DataTableFactory.php
/**
     * Creates a DataTable for one record from an archive data row.
     *
     * @see makeFromBlobRow
     *
     * @param array $blobRow
     * @return DataTable
     */
Creates a DataTable for one record from an archive data row.

@param array $blobRow
@return DataTable
Creates a DataTable for one record from an archive data row . @param array $blobRow @return DataTable
private function makeDataTableFromSingleBlob($blobRow)
    {
        $recordName = reset($this->dataNames);
        if ($this->idSubtable !== null) {
            $recordName .= '_' . $this->idSubtable;
        }
        if (!empty($blobRow[$recordName])) {
            $table = DataTable::fromSerializedArray($blobRow[$recordName]);
        } else {
            $table = new DataTable();
        }
        $table->setMetadataValues(DataCollection::getDataRowMetadata($blobRow));
        if ($this->expandDataTable) {
            $table->enableRecursiveFilters();
            $this->setSubtables($table, $blobRow);
        }
        return $table;
    }
private function makeDataTableFromSingleBlob ( $ blobRow ) { $ recordName = reset ( $ this -> dataNames ) ; if ( $ this -> idSubtable !== null ) { $ recordName .= '_' . $ this -> idSubtable ; } if ( ! empty ( $ blobRow [ $ recordName ] ) ) { $ table = DataTable :: fromSerializedArray ( $ blobRow [ $ recordName ] ) ; } else { $ table = new DataTable ( ) ; } $ table -> setMetadataValues ( DataCollection :: getDataRowMetadata ( $ blobRow ) ) ; if ( $ this -> expandDataTable ) { $ table -> enableRecursiveFilters ( ) ; $ this -> setSubtables ( $ table , $ blobRow ) ; } return $ table ; }
Creates a DataTable for one record from an archive data row.
Creates a DataTable for one record from an archive data row .
// set table metadata