public function GetBoatDetails(\model\Boat $boat) { return 'Type: ' . $boat->GetType() . ' - Length: ' . $boat->GetLength() . ' ' . $this->GetBoatAdminLinks($boat) . PHP_EOL; }
private function Update(\model\Boat $boat) { $stmt = $this->db->prepare("UPDATE boat SET length = ?, type = ? WHERE id = ?"); $stmt->execute(array($boat->GetLength(), $boat->GetType(), $boat->GetID())); }