public function save() { if (!$this->isModified()) { return FALSE; } $this->serializer->write($this->value); $this->modified = FALSE; return TRUE; }
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; }