/** * Set value of a single composite field * * @param string $field * @param mixed $value * @param bool $markChanged */ public function setField($field, $value, $markChanged = true) { // Skip non-db fields if (!$this->hasField($field)) { return; } // Set changed if ($markChanged) { $this->isChanged = true; } // Set bound object if ($this->record instanceof DataObject) { $key = $this->getName() . $field; return $this->record->setField($key, $value); } // Set local record $this->record[$field] = $value; }
function setField($field, $value) { parent::setField($field, $value); }
/** * Sets the title * * @param string $title Title to set * * @return void */ public function setTitle($title) { $this->i18nTitle = $title; parent::setField('Title', $title); }
public function setConfig($data) { $this->mergedConfig = null; return parent::setField('Config', $data); }