public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/classes/unitfrontend.php
/**
		 * Update the next step data for the current quiz progress.
		 *
		 * @param String $type The type to switch to.
		 * @param String $message The message to use for this step.
		 */
Update the next step data for the current quiz progress.
@param String $type The type to switch to.
@param String $message The message to use for this step.
Update the next step data for the current quiz progress . @param String $type The type to switch to . @param String $message The message to use for this step .
public function update_quizzes_setNextStepData( $type, $message ) {
			global $wpdb, $wpcwdb;
			$wpdb->show_errors();
			$wpdb->query( $wpdb->prepare(
				"
				UPDATE $wpcwdb->user_progress_quiz 
				SET quiz_next_step_type = %s, quiz_next_step_msg = %s
				WHERE user_id = %d
				  AND unit_id = %d
				  AND quiz_id = %d
				  AND quiz_is_latest = 'latest'
			", $type, $message, $this->currentUserID, $this->unitPost->ID, $this->unitQuizDetails->quiz_id
			) );
			$this->unitQuizProgress->quiz_next_step_type = $type;
			$this->unitQuizProgress->quiz_next_step_msg  = $message;
		}
public function update_quizzes_setNextStepData ( $ type , $ message ) { global $ wpdb , $ wpcwdb ; $ wpdb -> show_errors ( ) ; $ wpdb -> query ( $ wpdb -> prepare ( " 
				UPDATE  $ wpcwdb -> user_progress_quiz  
				SET quiz_next_step_type = %s, quiz_next_step_msg = %s
				WHERE user_id = %d
				  AND unit_id = %d
				  AND quiz_id = %d
				  AND quiz_is_latest = 'latest'
			 " , $ type , $ message , $ this -> currentUserID , $ this -> unitPost -> ID , $ this -> unitQuizDetails -> quiz_id ) ) ; $ this -> unitQuizProgress -> quiz_next_step_type = $ type ; $ this -> unitQuizProgress -> quiz_next_step_msg = $ message ; }
Update the next step data for the current quiz progress.
Update the next step data for the current quiz progress .
// Update internal variables rather than do a database reload.