piwik/core/Archive/DataTableFactory.php
/**
     * Creates a DataTable|Set instance using an array
     * of blobs.
     *
     * If only one record is being queried, a single DataTable will
     * be returned. Otherwise, a DataTable\Map is returned that indexes
     * DataTables by record name.
     *
     * If expandDataTable was called, and only one record is being queried,
     * the created DataTable's subtables will be expanded.
     *
     * @param array $blobRow
     * @return DataTable|DataTable\Map
     */
Creates a DataTable|Set instance using an array
of blobs.

If only one record is being queried, a single DataTable will
be returned. Otherwise, a DataTable\Map is returned that indexes
DataTables by record name.

If expandDataTable was called, and only one record is being queried,
the created DataTable's subtables will be expanded.


Creates a DataTable|Set instance using an array of blobs . If only one record is being queried a single DataTable will be returned . Otherwise a DataTable \ Map is returned that indexes DataTables by record name . If expandDataTable was called and only one record is being queried the created DataTable ' s subtables will be expanded .
private function makeFromBlobRow($blobRow)
    {
        if ($blobRow === false) {
            return new DataTable();
        }
        if (count($this->dataNames) === 1) {
            return $this->makeDataTableFromSingleBlob($blobRow);
        } else {
            return $this->makeIndexedByRecordNameDataTable($blobRow);
        }
    }
private function makeFromBlobRow ( $ blobRow ) { if ( $ blobRow === false ) { return new DataTable ( ) ; } if ( count ( $ this -> dataNames ) === 1 ) { return $ this -> makeDataTableFromSingleBlob ( $ blobRow ) ; } else { return $ this -> makeIndexedByRecordNameDataTable ( $ blobRow ) ; } }
Creates a DataTable|Set instance using an array
 of blobs.
Creates a DataTable|Set instance using an array of blobs .