public function parseComputedColumns($item, array &$outputRow)
    {
        $columns         = $this->columnFactory->getColumns();
        $computedColumns = $this->columnFactory->getComputedColumns();

        //loop over the computed columns
        foreach ($computedColumns as $name => $column) {
            $outputRow[$name] = array(
                'raw'      => $item->{$name},
                'rendered' => $columns[$name]->renderOutput($item->{$name}, $item),
            );
        }
    }
public function parseComputedColumns($item, array &$outputRow)
    {
        $columns         = $this->columnFactory->getColumns();
        $computedColumns = $this->columnFactory->getComputedColumns();

        //loop over the computed columns
        foreach ($computedColumns as $name => $column) {
            $outputRow[$name] = array(
                'raw'      => $item->{$name},
                'rendered' => $columns[$name]->renderOutput($item->{$name}, $item),
            );
        }
    }
public function parseComputedColumns ( $ item , array & $ outputRow ) { $ columns = $ this -> columnFactory -> getColumns ( ) ; $ computedColumns = $ this -> columnFactory -> getComputedColumns ( ) ; //loop over the computed columns foreach ( $ computedColumns as $ name => $ column ) { $ outputRow [ $ name ] = array ( 'raw' => $ item -> { $ name } , 'rendered' => $ columns [ $ name ] -> renderOutput ( $ item -> { $ name } , $ item ) , ) ; } }
Goes through all computed columns and sets the proper values for this row.

@param \Illuminate\Database\Eloquent\Model $item
@param array                               $outputRow
Goes through all computed columns and sets the proper values for this row .