public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/classes/unitfrontend.php
/**
		 * Determine if we want to show the results for this quiz.
		 *
		 * @return Boolean True if we return results, false otherwise.
		 */
Determine if we want to show the results for this quiz.
@return Boolean True if we return results, false otherwise.
Determine if we want to show the results for this quiz . @return Boolean True if we return results false otherwise .
public function check_quizzes_doWeShowResults() {
			if ( ! $this->check_quizzes_validQuizDetails() ) {
				return false;
			}
			$wantToTryToShowResults = false;
			switch ( $this->unitQuizDetails->quiz_type ) {
				case 'survey':
					$wantToTryToShowResults = ( 'show_responses' == $this->unitQuizDetails->quiz_show_survey_responses );
					break;
				default:
										$showAnswersSettings = maybe_unserialize( $this->unitQuizDetails->show_answers_settings );
					if (
						( 'show_answers' == $this->unitQuizDetails->quiz_show_answers ) &&
						( 'on' == WPCW_arrays_getValue( $showAnswersSettings, 'show_results_later' ) || $this->createdAfterAJAXCall )
					) {
						$wantToTryToShowResults = true;
					}
					break;
			}
			return $wantToTryToShowResults;
		}
public function check_quizzes_doWeShowResults ( ) { if ( ! $ this -> check_quizzes_validQuizDetails ( ) ) { return false ; } $ wantToTryToShowResults = false ; switch ( $ this -> unitQuizDetails -> quiz_type ) { case 'survey' : $ wantToTryToShowResults = ( 'show_responses' == $ this -> unitQuizDetails -> quiz_show_survey_responses ) ; break ; default : $ showAnswersSettings = maybe_unserialize ( $ this -> unitQuizDetails -> show_answers_settings ) ; if ( ( 'show_answers' == $ this -> unitQuizDetails -> quiz_show_answers ) && ( 'on' == WPCW_arrays_getValue ( $ showAnswersSettings , 'show_results_later' ) || $ this -> createdAfterAJAXCall ) ) { $ wantToTryToShowResults = true ; } break ; } return $ wantToTryToShowResults ; }
Determine if we want to show the results for this quiz.
Determine if we want to show the results for this quiz .
// If no details, then don't show results. // ### Show Answers - show quiz answers if requested. // Do we want to try and show the results?
 // @since V2.90 // ('survey' == $this->unitQuizDetails->quiz_type && 'show_responses' = $this->unitQuizDetails->quiz_show_survey_responses); // Survey - show responses only // Quiz - Show Answers mode // Do we want to show the answers after they've completed it?
 // Generally - if show answers are on // Show if always showing results later OR we've just submitted quiz results