Helper function that creates an Archive instance and queries for report data using
query parameter data. API methods can use this method to reduce code redundancy.
public static createDataTableFromArchive ( string $recordName, integer | string | array $idSite, string $period, string $date, string $segment, boolean $expanded = false, boolean $flat = false, integer | null $idSubtable = null, integer | null $depth = null ) : |
||
$recordName | string | The name of the report to return. |
$idSite | integer | string | array | @see {@link build()} |
$period | string | @see {@link build()} |
$date | string | @see {@link build()} |
$segment | string | @see {@link build()} |
$expanded | boolean | If true, loads all subtables. See {@link getDataTableExpanded()} |
$flat | boolean | If true, loads all subtables and disabled all recursive filters. |
$idSubtable | integer | null | See {@link getDataTableExpanded()} |
$depth | integer | null | See {@link getDataTableExpanded()} |
Résultat |