示例#1
0
 public function save()
 {
     if (!$this->isModified()) {
         return FALSE;
     }
     $this->serializer->write($this->value);
     $this->modified = FALSE;
     return TRUE;
 }
示例#2
0
 public function save()
 {
     if (!$this->isModified()) {
         return FALSE;
     }
     if (is_object($this->data)) {
         $value = implode($this->separator, $this->data->getArrayCopy());
     } else {
         $value = NULL;
     }
     $this->serializer->write($value);
     $this->modified = FALSE;
     return TRUE;
 }