newLabel = $newLabel; } /** * Updates the summary row label * * @param Piwik_DataTable $table */ public function filter($table) { $rows = $table->getRows(); foreach ($rows as $row) { if ($row->getColumn('label') == Piwik_DataTable::LABEL_SUMMARY_ROW) { $row->setColumn('label', $this->newLabel); break; } } // recurse foreach ($rows as $row) { if ($row->isSubtableLoaded()) { $subTable = Piwik_DataTable_Manager::getInstance()->getTable($row->getIdSubDataTable()); $this->filter($subTable); } } } }