public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/classes/unitfrontend.php
/**
		 * Check for next availalbe unanswered question
		 *
		 * @return Returns next unanswered question
		 */
Check for next availalbe unanswered question
@return Returns next unanswered question
Check for next availalbe unanswered question @return Returns next unanswered question
function check_paging_find_next_unanswered_question() {
			$incompleteQs = $this->unitQuizProgress_incompleteQs;
			if ( $this->unitQuizProgress->quiz_paging_incomplete >= 1 ) {
				foreach ( $incompleteQs as $key => $question_id ) {
					if ( $key > $this->unitQuizProgress->quiz_paging_next_q ) {
						return key( $this->unitQuizProgress_incompleteQs );
					} elseif ( $key == $this->unitQuizProgress->quiz_paging_next_q ) {
						if ( next( $this->unitQuizProgress_incompleteQs ) ) {
							return key( $this->unitQuizProgress_incompleteQs );
						} else {
							reset( $this->unitQuizProgress_incompleteQs );
							return key( $this->unitQuizProgress_incompleteQs );
						}
					}
					next( $this->unitQuizProgress_incompleteQs );
				}
			} else {
				return $this->unitQuizProgress->quiz_question_total;
			}
		}
function check_paging_find_next_unanswered_question ( ) { $ incompleteQs = $ this -> unitQuizProgress_incompleteQs ; if ( $ this -> unitQuizProgress -> quiz_paging_incomplete >= 1 ) { foreach ( $ incompleteQs as $ key => $ question_id ) { if ( $ key > $ this -> unitQuizProgress -> quiz_paging_next_q ) { return key ( $ this -> unitQuizProgress_incompleteQs ) ; } elseif ( $ key == $ this -> unitQuizProgress -> quiz_paging_next_q ) { if ( next ( $ this -> unitQuizProgress_incompleteQs ) ) { return key ( $ this -> unitQuizProgress_incompleteQs ) ; } else { reset ( $ this -> unitQuizProgress_incompleteQs ) ; return key ( $ this -> unitQuizProgress_incompleteQs ) ; } } next ( $ this -> unitQuizProgress_incompleteQs ) ; } } else { return $ this -> unitQuizProgress -> quiz_question_total ; } }
Check for next availalbe unanswered question
 @return Returns next unanswered question
Check for next availalbe unanswered question @return Returns next unanswered question