public function executeGetColumnData($model, $params = [])
	{
		$value = null;
		if (isset($params['value']) && $params['value'] !== null) {
			if (is_string($params['value'])) {
				$value = ArrayHelper::getValue($model, $params['value']);
			} else {
				$value = call_user_func($params['value'], $model, $this);
			}
		} elseif (isset($params['attribute']) && $params['attribute'] !== null) {
			$value = ArrayHelper::getValue($model, $params['attribute']);
		}

		if (isset($params['format']) && $params['format'] != null)
			$value = $this->formatter()->format($value, $params['format']);

		return $value;
	}
public function executeGetColumnData($model, $params = [])
	{
		$value = null;
		if (isset($params['value']) && $params['value'] !== null) {
			if (is_string($params['value'])) {
				$value = ArrayHelper::getValue($model, $params['value']);
			} else {
				$value = call_user_func($params['value'], $model, $this);
			}
		} elseif (isset($params['attribute']) && $params['attribute'] !== null) {
			$value = ArrayHelper::getValue($model, $params['attribute']);
		}

		if (isset($params['format']) && $params['format'] != null)
			$value = $this->formatter()->format($value, $params['format']);

		return $value;
	}
public function executeGetColumnData ( $ model , $ params = [ ] ) { $ value = null ; if ( isset ( $ params [ 'value' ] ) && $ params [ 'value' ] !== null ) { if ( is_string ( $ params [ 'value' ] ) ) { $ value = ArrayHelper :: getValue ( $ model , $ params [ 'value' ] ) ; } else { $ value = call_user_func ( $ params [ 'value' ] , $ model , $ this ) ; } } elseif ( isset ( $ params [ 'attribute' ] ) && $ params [ 'attribute' ] !== null ) { $ value = ArrayHelper :: getValue ( $ model , $ params [ 'attribute' ] ) ; } if ( isset ( $ params [ 'format' ] ) && $ params [ 'format' ] != null ) $ value = $ this -> formatter ( ) -> format ( $ value , $ params [ 'format' ] ) ; return $ value ; }
Getting column value.
@param Model $model
@param array $params
@return Ambigous <NULL, string, mixed>
Getting column value .