protected function save() { parent::save(); $values = $this->form->getValues(); $this->object->setStart($this->toDateTime($values['Start-Time'], $values['Start-Date'])); $this->object->setEnd($this->toDateTime($values['End-Time'], $values['End-Date'])); $this->controller->editRecord($this->object); }
protected function save() { parent::save(); $values = $this->form->getValues(); $parent = $this->controller->getTodo($values['Parent']); $this->object->setParent($parent); if ($values['Done']) { $this->object->check(); } else { $this->object->uncheck(); } $this->controller->editTodo($this->object); }