Пример #1
0
 /**
  * Adds a data row to the export
  * @param zibo\library\html\table\Row $row Data row
  * @return null
  */
 public function addExportDataRow(Row $row, $isGroupRow)
 {
     $cells = $row->getCells();
     foreach ($cells as $cell) {
         $value = $cell->getValue();
         $cell->setValue(nl2br($value));
     }
     if ($isGroupRow) {
         $row->appendToClass('group');
     } else {
         if ($this->zebraIndex) {
             $row->appendToClass('even');
             $this->zebraIndex = 0;
         } else {
             $row->appendToClass('odd');
             $this->zebraIndex = 1;
         }
     }
     $this->rows[] = $row;
 }