public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/classes/unitfrontend.php
/**
		 * Tries to trigger the start of a quiz that's using a timer.
		 */
Tries to trigger the start of a quiz that's using a timer.
Tries to trigger the start of a quiz that ' s using a timer .
public function update_quizzes_beginQuiz() {
			if ( empty( $this->unitQuizProgress ) || 'retake_waiting' == $this->unitQuizProgress->quiz_next_step_type ) {
				$this->check_quizzes_canWeContinue_checkAnswersFromPaging( array() );
				$this->unitQuizProgress->quiz_paging_next_q = 0;
				$this->update_paging_getQuestion_saveQuestionMarker( 0 );
				global $wpdb, $wpcwdb;
				$wpdb->show_errors();
				$wpdb->query( $wpdb->prepare(
					"
				UPDATE $wpcwdb->user_progress_quiz 
				SET quiz_started_date = %s
				WHERE user_id = %d
				  AND unit_id = %d
				  AND quiz_id = %d
				  AND quiz_is_latest = 'latest'
			", current_time( 'mysql' ), $this->currentUserID, $this->unitPost->ID, $this->unitQuizDetails->quiz_id
				) );
			}
		}
public function update_quizzes_beginQuiz ( ) { if ( empty ( $ this -> unitQuizProgress ) || 'retake_waiting' == $ this -> unitQuizProgress -> quiz_next_step_type ) { $ this -> check_quizzes_canWeContinue_checkAnswersFromPaging ( array ( ) ) ; $ this -> unitQuizProgress -> quiz_paging_next_q = 0 ; $ this -> update_paging_getQuestion_saveQuestionMarker ( 0 ) ; global $ wpdb , $ wpcwdb ; $ wpdb -> show_errors ( ) ; $ wpdb -> query ( $ wpdb -> prepare ( " 
				UPDATE  $ wpcwdb -> user_progress_quiz  
				SET quiz_started_date = %s
				WHERE user_id = %d
				  AND unit_id = %d
				  AND quiz_id = %d
				  AND quiz_is_latest = 'latest'
			 " , current_time ( 'mysql' ) , $ this -> currentUserID , $ this -> unitPost -> ID , $ this -> unitQuizDetails -> quiz_id ) ) ; } }
Tries to trigger the start of a quiz that's using a timer.
Tries to trigger the start of a quiz that ' s using a timer .
// No quiz progress so far or we're doing a retake, so create a brand new progress item. // Set index to first question // And save... // Now update the start date of the quiz to now. // Then just update the single count in the database.