public function getDataCellValue($model, $key, $index)
    {
        if ($this->value !== null) {
            if (is_string($this->value)) {
                return ArrayHelper::getValue($model, $this->value);
            } else {
                return call_user_func($this->value, $model, $key, $index, $this);
            }
        } elseif ($this->attribute !== null) {
            return ArrayHelper::getValue($model, $this->attribute);
        }
        return null;
    }
public function getDataCellValue($model, $key, $index)
    {
        if ($this->value !== null) {
            if (is_string($this->value)) {
                return ArrayHelper::getValue($model, $this->value);
            } else {
                return call_user_func($this->value, $model, $key, $index, $this);
            }
        } elseif ($this->attribute !== null) {
            return ArrayHelper::getValue($model, $this->attribute);
        }
        return null;
    }
public function getDataCellValue ( $ model , $ key , $ index ) { if ( $ this -> value !== null ) { if ( is_string ( $ this -> value ) ) { return ArrayHelper :: getValue ( $ model , $ this -> value ) ; } else { return call_user_func ( $ this -> value , $ model , $ key , $ index , $ this ) ; } } elseif ( $ this -> attribute !== null ) { return ArrayHelper :: getValue ( $ model , $ this -> attribute ) ; } return null ; }
Returns the data cell value.
@param mixed $model the data model
@param mixed $key the key associated with the data model
@param integer $index the zero-based index of the data model among the models array returned by [[GridView::dataProvider]].
@return string the data cell value
Returns the data cell value .