public function saveSlot($agendaID, $content, $type, $slotnum, $numberOfBookers) { $this->agendaID = $agendaID; $this->content = $content; $this->type = $type; $this->slotnum = $slotnum; $this->numberOfBookers = $numberOfBookers; $this->bookCount = 0; try { Slot::save(true); } catch (Exception $e) { return false; } return true; }