예제 #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;
 }
예제 #2
0
파일: Text.php 프로젝트: trejjam/contents
 public function update($data)
 {
     $oldData = $this->rawData;
     parent::update($data);
     if ($this->isUpdated) {
         $this->updated = is_null($oldData) ? self::EMPTY_VALUE : $oldData;
     }
 }