/**
  * 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;
 }
Example #2
0
 function setField($field, $value)
 {
     parent::setField($field, $value);
 }
Example #3
0
 /**
  * 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);
 }