protected function getDataForPresenter($dataKey, $viewIndex = false)
    {
        if (!isset($this->currentRow[$dataKey])) {
            return $this->model->getBoundValue($dataKey, $viewIndex);
        }

        $value = $this->currentRow[$dataKey];

        if ($value instanceof Model) {
            return $value->UniqueIdentifier;
        }

        return $value;
    }
protected function getDataForPresenter($dataKey, $viewIndex = false)
    {
        if (!isset($this->currentRow[$dataKey])) {
            return $this->model->getBoundValue($dataKey, $viewIndex);
        }

        $value = $this->currentRow[$dataKey];

        if ($value instanceof Model) {
            return $value->UniqueIdentifier;
        }

        return $value;
    }
protected function getDataForPresenter ( $ dataKey , $ viewIndex = false ) { if ( ! isset ( $ this -> currentRow [ $ dataKey ] ) ) { return $ this -> model -> getBoundValue ( $ dataKey , $ viewIndex ) ; } $ value = $ this -> currentRow [ $ dataKey ] ; if ( $ value instanceof Model ) { return $ value -> UniqueIdentifier ; } return $ value ; }
Provides model data to the requesting presenter.

This implementation ensures the LeafColumns are able to receive data from the row's model

@param string $dataKey
@param bool|int $viewIndex
@return mixed
Provides model data to the requesting presenter .