public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/functions.php
/**
 * Get the course prerequisites.
 *
 * @since 1.0.0
 *
 * @param integer $courseID The ID of the course to get the enrollment date for.
 *
 * @return integer The course enrolement date as a timestamp, or false if the user wasn't found.
 */
Get the course prerequisites.

@param integer $courseID The ID of the course to get the enrollment date for.

@return integer The course enrolement date as a timestamp, or false if the user wasn't found.
Get the course prerequisites . @param integer $courseID The ID of the course to get the enrollment date for . @return integer The course enrolement date as a timestamp or false if the user wasn ' t found .
function WPCW_users_getCoursePrerequisites( $courseID = 0 ) {
	if ( $courseID == 0 ) {
		return;
	}
	global $wpcwdb, $wpdb;
	$wpdb->show_errors();
	$prerequisites = $wpdb->get_var( $wpdb->prepare( "
		SELECT course_opt_prerequisites
		FROM $wpcwdb->courses
		WHERE course_id = %d
	", $courseID ) );
	if ( $prerequisites ) {
		return maybe_unserialize( $prerequisites );
	}
	return false;
}
function WPCW_users_getCoursePrerequisites ( $ courseID = 0 ) { if ( $ courseID == 0 ) { return ; } global $ wpcwdb , $ wpdb ; $ wpdb -> show_errors ( ) ; $ prerequisites = $ wpdb -> get_var ( $ wpdb -> prepare ( " 
		SELECT course_opt_prerequisites
		FROM  $ wpcwdb -> courses 
		WHERE course_id = %d
	 " , $ courseID ) ) ; if ( $ prerequisites ) { return maybe_unserialize ( $ prerequisites ) ; } return false ; }
Get the course prerequisites.
Get the course prerequisites .