Exemplo n.º 1
0
 public function renderTableRow($row)
 {
     $this->_currentRow = $row;
     if ($this->groupKey !== null) {
         $data = $this->dataProvider->data[$row];
         $group = $this->evaluateExpression($this->groupHeader, array('data' => $data, 'row' => $row, 'group' => $this->lastGroup));
         if ($this->lastGroup != $group) {
             $this->lastGroup = $group;
             $this->renderGroupHeader($row);
         }
     }
     parent::renderTableRow($row);
 }
Exemplo n.º 2
0
 public function renderTableRow($row)
 {
     $this->_currentRow = $row;
     if ($this->groupKey !== null) {
         $data = $this->dataProvider->data[$row];
         $group = CHtml::value($data, $this->groupKey);
         if ($this->lastGroup != $group) {
             $this->lastGroup = $group;
             $this->renderGroupHeader($row);
         }
     }
     parent::renderTableRow($row);
 }