Ejemplo 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);
 }
Ejemplo 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);
 }