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