public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/classes/unitfrontend.php
/**
		 * Renders the results of the questions, grouped by tag as HTML for the frontend of the site.
		 *
		 * @return Array The list of formatted HTML lines to render the question results by tag.
		 */
Renders the results of the questions, grouped by tag as HTML for the frontend of the site.
@return Array The list of formatted HTML lines to render the question results by tag.
Renders the results of the questions grouped by tag as HTML for the frontend of the site . @return Array The list of formatted HTML lines to render the question results by tag .
public function render_quizzes_questionResultsByTag_forFrontend() {
			$html          = array();
			$tagBucketList = $this->fetch_quizzes_questionResultsByTag();
			if ( ! empty( $tagBucketList ) ) {
				foreach ( $tagBucketList as $tagID => $tagDetails ) {
					if ( $tagDetails['question_open_count'] > 0 ) {
						$html[] = sprintf(
							'<b>%s:</b> %s', $tagDetails['tag_details']->question_tag_name, sprintf( __( 'Your grade is %d%%', 'wp-courseware' ), $tagDetails['score_total'] )
						);
					} 
					else {
						$html[] = sprintf(
							'<b>%s:</b> %s', $tagDetails['tag_details']->question_tag_name, sprintf(
								__( '%1$d out of %2$d correct (%3$d%%)', 'wp-courseware' ), $tagDetails['score_correct_questions'], $tagDetails['question_count'], $tagDetails['score_total']
							)
						);
					} 
				} 
			}
			return $html;
		}
public function render_quizzes_questionResultsByTag_forFrontend ( ) { $ html = array ( ) ; $ tagBucketList = $ this -> fetch_quizzes_questionResultsByTag ( ) ; if ( ! empty ( $ tagBucketList ) ) { foreach ( $ tagBucketList as $ tagID => $ tagDetails ) { if ( $ tagDetails [ 'question_open_count' ] > 0 ) { $ html [ ] = sprintf ( '<b>%s:</b> %s' , $ tagDetails [ 'tag_details' ] -> question_tag_name , sprintf ( __ ( 'Your grade is %d%%' , 'wp-courseware' ) , $ tagDetails [ 'score_total' ] ) ) ; } else { $ html [ ] = sprintf ( '<b>%s:</b> %s' , $ tagDetails [ 'tag_details' ] -> question_tag_name , sprintf ( __ ( '%1$d out of %2$d correct (%3$d%%)' , 'wp-courseware' ) , $ tagDetails [ 'score_correct_questions' ] , $ tagDetails [ 'question_count' ] , $ tagDetails [ 'score_total' ] ) ) ; } } } return $ html ; }
Renders the results of the questions, grouped by tag as HTML for the frontend of the site.
Renders the results of the questions grouped by tag as HTML for the frontend of the site .
// Got open questions // Just closed questions, show out of message. // end of question type check // end foreach