private function GetBoatAdminLinks(\model\Boat $boat) { $ret = ''; $ret .= $this->navView->GetEditBoatLink(self::$boatPosition . '=' . $boat->GetID(), "Edit boat" . ' '); $ret .= $this->navView->GetDeleteBoatLink(self::$boatPosition . '=' . $boat->GetID(), "Delete"); return $ret; }
public function Delete(\model\Boat $boat) { $stmt = $this->db->prepare("DELETE FROM boat WHERE id = ?"); $stmt->execute(array($boat->GetID())); }