formField = $formField; $this->columnName = $formField->columnName; $this->model = $model; if (isset($configuration->sessionKey)) $this->sessionKey = $configuration->sessionKey; if (isset($configuration->previewMode)) $this->previewMode = $configuration->previewMode; parent::__construct($controller, $configuration); } /** * Returns a unique ID for this widget. Useful in creating HTML markup. */ public function getId($suffix = null) { $id = parent::getId($suffix); $id .= '-' . $this->columnName; return $id; } /** * Process the postback data for this widget. * @param $value The existing value for this widget. * @return string The new value for this widget. */ public function getSaveData($value) { return $value; } }