GridView.php
protected function getColumnDataCellValue($column, $model, $key, $index)
    {
        if ($column->value !== null) {
            if (is_string($column->value)) {
                return ArrayHelper::getValue($model, $column->value);
            } else {
                return call_user_func($column->value, $model, $index, $column);
            }
        } elseif ($column->attribute !== null) {
            return ArrayHelper::getValue($model, $column->attribute);
        }
        return null;
    }
protected function getColumnDataCellValue($column, $model, $key, $index)
    {
        if ($column->value !== null) {
            if (is_string($column->value)) {
                return ArrayHelper::getValue($model, $column->value);
            } else {
                return call_user_func($column->value, $model, $index, $column);
            }
        } elseif ($column->attribute !== null) {
            return ArrayHelper::getValue($model, $column->attribute);
        }
        return null;
    }
protected function getColumnDataCellValue ( $ column , $ model , $ key , $ index ) { if ( $ column -> value !== null ) { if ( is_string ( $ column -> value ) ) { return ArrayHelper :: getValue ( $ model , $ column -> value ) ; } else { return call_user_func ( $ column -> value , $ model , $ index , $ column ) ; } } elseif ( $ column -> attribute !== null ) { return ArrayHelper :: getValue ( $ model , $ column -> attribute ) ; } return null ; }
Returns the column data cell value
@param \kartik\grid\DataColumn $column
@param mixed $model the data model being rendered
@param mixed $key the key associated with the data model
@param int $index the zero-based index of the data model among the models array
@return mixed|null the result
Returns the column data cell value