Exemple #1
0
 public function proceedEditForm(UI\Form $form, Items\Base $itemContainer, $field, $contentName)
 {
     $values = $form->getValues(TRUE);
     $itemContainer->update($values[$field]);
     $this->logObject($itemContainer->getUpdated(), $contentName);
     return TRUE;
 }
Exemple #2
0
 public function update($data)
 {
     $oldData = $this->rawData;
     parent::update($data);
     if ($this->isUpdated) {
         $this->updated = is_null($oldData) ? self::EMPTY_VALUE : $oldData;
     }
 }