/** * Returns a newly created Piwik_DataTable_Array. * The future elements of this array should be indexed by their dates (we set the index name to 'date'). * * @return Piwik_DataTable_Array */ protected function getNewDataTableArray() { $table = new Piwik_DataTable_Array(); $table->setNameKey('date'); return $table; }