public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/classes/export.php
/**
		 * Tries to get the quiz data for each unit that's in this list of units. Each unit is updated with
		 * the quiz details if any are associated with a unit. Kept in this function as not needed elsewhere
		 * so saving processing by putting it here.
		 *
		 * @param Array The list of units to check
		 *
		 * @return Array The same list of units passed as a parameter.
		 */
Tries to get the quiz data for each unit that's in this list of units. Each unit is updated with
the quiz details if any are associated with a unit. Kept in this function as not needed elsewhere
so saving processing by putting it here.

@param Array The list of units to check

@return Array The same list of units passed as a parameter.
Tries to get the quiz data for each unit that ' s in this list of units . Each unit is updated with the quiz details if any are associated with a unit . Kept in this function as not needed elsewhere so saving processing by putting it here . @param Array The list of units to check @return Array The same list of units passed as a parameter .
public static function WPCW_quizzes_fetchQuizzesForUnits( $unitList ) {
			if ( ! empty( $unitList ) ) {
				foreach ( $unitList as $unitID => $unitObj ) {
					$unitObj->extradata_quiz_details = WPCW_quizzes_getAssociatedQuizForUnit( $unitID, false, false );
				}
			}
			return $unitList;
		}
public static function WPCW_quizzes_fetchQuizzesForUnits ( $ unitList ) { if ( ! empty ( $ unitList ) ) { foreach ( $ unitList as $ unitID => $ unitObj ) { $ unitObj -> extradata_quiz_details = WPCW_quizzes_getAssociatedQuizForUnit ( $ unitID , false , false ) ; } } return $ unitList ; }
Tries to get the quiz data for each unit that's in this list of units.
Tries to get the quiz data for each unit that ' s in this list of units .
// Add quiz data for each unit in the list. // Create field anyway, but update with quiz details if one was found.