Méthode | Description | |
---|---|---|
__construct ( $dataNames, $dataType, $sitesId, $periods, $defaultRow ) | Constructor. | |
expandDataTable ( null | integer $maxSubtableDepth = null, boolean $addMetadataSubtableId = false ) | Tells the factory instance to expand the DataTables that are created by creating subtables and setting the subtable IDs of rows w/ subtables correctly. | |
getSiteIdFromMetadata ( |
Returns the ID of the site a table is related to based on the 'site' metadata entry, or null if there is none. | |
make ( array $index, array $resultIndices ) : |
Creates a DataTable|Set instance using an index of archive data. | |
makeMerged ( array $index, array $resultIndices ) : |
Creates a merged DataTable|Map instance using an index of archive data similar to {@link make()}. | |
useSubtable ( integer $idSubtable ) | Tells the factory instance to create a DataTable using a blob with the supplied subtable ID. |
Méthode | Description | |
---|---|---|
createDataTable ( array $data, array $keyMetadata ) : |
Creates a DataTable instance from an index row. | |
createDataTableMapFromIndex ( array $index, array $resultIndices, array $keyMetadata ) : Piwik\DataTable\Map | Creates a Set from an array index. | |
createTableIndexMetadata ( $resultIndex, $label ) | ||
getDefaultMetadata ( ) | ||
isNumericDataType ( ) | ||
makeDataTableFromSingleBlob ( array $blobRow, $keyMetadata ) : |
Creates a DataTable for one record from an archive data row. | |
makeFromBlobRow ( array $blobRow, $keyMetadata ) : |
Creates a DataTable|Set instance using an array of blobs. | |
makeFromMetricsArray ( $data, $keyMetadata ) : Piwik\DataTable\Simple | ||
makeIndexedByRecordNameDataTable ( array $blobRow, $keyMetadata ) : Piwik\DataTable\Map | Creates a DataTable for every record in an archive data row and puts them in a DataTable\Map instance. | |
makeMergedTableWithPeriodAndSiteIndex ( $index, $resultIndices, $useSimpleDataTable, $isNumeric ) | ||
makeMergedWithSiteIndex ( $index, $useSimpleDataTable, $isNumeric ) | ||
prettifyIndexLabel ( string $labelType, string $label ) : string | Returns the pretty version of an index label. | |
setSubtables ( |
Creates DataTables from $dataTable's subtable blobs (stored in $blobRow) and sets the subtable IDs of each DataTable row. |
public __construct ( $dataNames, $dataType, $sitesId, $periods, $defaultRow ) |
public static getSiteIdFromMetadata ( |
||
$table | ||
Résultat | integer | null |
public makeMerged ( array $index, array $resultIndices ) : |
||
$index | array | @see DataCollection |
$resultIndices | array | an array mapping metadata names with pretty metadata labels. |
Résultat |
public useSubtable ( integer $idSubtable ) | ||
$idSubtable | integer | An in-database subtable ID. |