The first element in the returned array will be the serialized representation of this DataTable.
Every subsequent element will be a serialized subtable.
This DataTable and subtables can optionally be truncated before being serialized. In most
cases where DataTables can become quite large, they should be truncated before being persisted
in an archive.
The result of this method is intended for use with the {@link ArchiveProcessor::insertBlobRecord()} method.
public getSerialized ( integer $maximumRowsInDataTable = null, integer $maximumRowsInSubDataTable = null, string $columnToSortByBeforeTruncation = null ) : array | ||
$maximumRowsInDataTable | integer | If not null, defines the maximum number of rows allowed in the serialized DataTable. |
$maximumRowsInSubDataTable | integer | If not null, defines the maximum number of rows allowed in serialized subtables. |
$columnToSortByBeforeTruncation | string | The column to sort by before truncating, eg, `Metrics::INDEX_NB_VISITS`. |
return | array | The array of serialized DataTables: array( // this DataTable (the root) 0 => 'eghuighahgaueytae78yaet7yaetae', // a subtable 1 => 'gaegae gh gwrh guiwh uigwhuige', // another subtable 2 => 'gqegJHUIGHEQjkgneqjgnqeugUGEQHGUHQE', // etc. ); |