public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/admin/functions.php
/**
 * Translates a question type into its proper name.
 *
 * @since 1.0.0
 *
 * @param string $questionType The type of the quiz question.
 *
 * @return string The question type as a label.
 */
Translates a question type into its proper name.

@param string $questionType The type of the quiz question.

@return string The question type as a label.
Translates a question type into its proper name . @param string $questionType The type of the quiz question . @return string The question type as a label .
function WPCW_quizzes_getQuestionTypeName( $questionType ) {
	$questionTypeStr = __( 'N/A', 'wp-courseware' );
	switch ( $questionType ) {
		case 'truefalse':
			$questionTypeStr = __( 'True/False', 'wp-courseware' );
			break;
		case 'multi':
			$questionTypeStr = __( 'Multiple Choice', 'wp-courseware' );
			break;
		case 'upload':
			$questionTypeStr = __( 'File Upload', 'wp-courseware' );
			break;
		case 'open':
			$questionTypeStr = __( 'Open Ended', 'wp-courseware' );
			break;
		case 'random_selection':
			$questionTypeStr = __( 'Random Selection', 'wp-courseware' );
			break;
	}
	return $questionTypeStr;
}
function WPCW_quizzes_getQuestionTypeName ( $ questionType ) { $ questionTypeStr = __ ( 'N/A' , 'wp-courseware' ) ; switch ( $ questionType ) { case 'truefalse' : $ questionTypeStr = __ ( 'True/False' , 'wp-courseware' ) ; break ; case 'multi' : $ questionTypeStr = __ ( 'Multiple Choice' , 'wp-courseware' ) ; break ; case 'upload' : $ questionTypeStr = __ ( 'File Upload' , 'wp-courseware' ) ; break ; case 'open' : $ questionTypeStr = __ ( 'Open Ended' , 'wp-courseware' ) ; break ; case 'random_selection' : $ questionTypeStr = __ ( 'Random Selection' , 'wp-courseware' ) ; break ; } return $ questionTypeStr ; }
Translates a question type into its proper name.
Translates a question type into its proper name .