/** * Function to delete Slot * * @param int $id Id of the Slot to be deleted. * * @return boolean * * @access public * @static */ static function cancel($id) { $dao = new CRM_Booking_DAO_Slot(); $dao->id = $id; $dao->is_cancelled = 1; return $dao->save(); }