public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/admin/functions.php
/**
 * Determine if any of the specified list of questions require manual grading.
 *
 * @since 1.0.0
 *
 * @param array $quizItems The items to check
 *
 * @return boolean True if the items need manual grading, false otherwise.
 */
Determine if any of the specified list of questions require manual grading.

@param array $quizItems The items to check

@return boolean True if the items need manual grading, false otherwise.
Determine if any of the specified list of questions require manual grading . @param array $quizItems The items to check @return boolean True if the items need manual grading false otherwise .
function WPCW_quizzes_containsQuestionsNeedingManualGrading( $quizItems ) {
	if ( ! $quizItems ) {
		return false;
	}
	foreach ( $quizItems as $quizItem ) {
		if ( 'open' == $quizItem->question_type || 'upload' == $quizItem->question_type ) {
			return true;
		}
	}
	return false;
}
function WPCW_quizzes_containsQuestionsNeedingManualGrading ( $ quizItems ) { if ( ! $ quizItems ) { return false ; } foreach ( $ quizItems as $ quizItem ) { if ( 'open' == $ quizItem -> question_type || 'upload' == $ quizItem -> question_type ) { return true ; } } return false ; }
Determine if any of the specified list of questions require manual grading.
Determine if any of the specified list of questions require manual grading .
// Open or upload questions