/** * @param mixed $nullOrValue */ protected function setValue($nullOrValue) { if (is_null($nullOrValue)) { $this->value = $nullOrValue; } else { parent::setValue($nullOrValue); } }
/** * Set the value on the field. * Optionally takes the whole record as an argument, * to pick other values. * * @param mixed $value * @param array $record */ public function setValue($value, $record = null) { FrontendEditing::setValue($this, $value, $record); parent::setValue($value, $record); }