public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/pages/page-course-modify.php
/**
 * Gets a list of all blocking courses for the specified course ID.
 *
 * @param integer $courseID The ID of the course to search.
 *
 * @return array A list of blocking quizzes for the specified course ID (or false if there are none).
 */
Gets a list of all blocking courses for the specified course ID.
@param integer $courseID The ID of the course to search.

@return array A list of blocking quizzes for the specified course ID (or false if there are none).
Gets a list of all blocking courses for the specified course ID . @param integer $courseID The ID of the course to search . @return array A list of blocking quizzes for the specified course ID ( or false if there are none ) .
function WPCW_quizzes_getAllBlockingQuizzesForCourse( $courseID ) {
	global $wpdb, $wpcwdb;
	$wpdb->show_errors();
	$SQL = $wpdb->prepare( "
    	SELECT *
    	FROM $wpcwdb->quiz
    	WHERE parent_course_id = %d
    	  AND quiz_type = 'quiz_block'
   	", $courseID );
	return $wpdb->get_results( $SQL );
}
function WPCW_quizzes_getAllBlockingQuizzesForCourse ( $ courseID ) { global $ wpdb , $ wpcwdb ; $ wpdb -> show_errors ( ) ; $ SQL = $ wpdb -> prepare ( " 
    	SELECT *
    	FROM  $ wpcwdb -> quiz 
    	WHERE parent_course_id = %d
    	  AND quiz_type = 'quiz_block'
   	 " , $ courseID ) ; return $ wpdb -> get_results ( $ SQL ) ; }
Gets a list of all blocking courses for the specified course ID.
Gets a list of all blocking courses for the specified course ID .