public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/classes/coursemap.php
/**
		 * Try to load details using a single unit.
		 *
		 * @param Integer $unitID The ID of the unit to use to load details for this course.
		 */
Try to load details using a single unit.
@param Integer $unitID The ID of the unit to use to load details for this course.
Try to load details using a single unit . @param Integer $unitID The ID of the unit to use to load details for this course .
public function loadDetails_byUnitID( $unitID ) {
			global $wpcwdb, $wpdb;
			$wpdb->show_errors();
			$parentCourseID = $wpdb->get_var( $wpdb->prepare( "
			SELECT parent_course_id
			FROM $wpcwdb->units_meta
			WHERE unit_id = %d
		", $unitID ) );
			$this->courseDetails = WPCW_courses_getCourseDetails( $parentCourseID );
			$this->loadUnitsForCourse();
		}
public function loadDetails_byUnitID ( $ unitID ) { global $ wpcwdb , $ wpdb ; $ wpdb -> show_errors ( ) ; $ parentCourseID = $ wpdb -> get_var ( $ wpdb -> prepare ( " 
			SELECT parent_course_id
			FROM  $ wpcwdb -> units_meta 
			WHERE unit_id = %d
		 " , $ unitID ) ) ; $ this -> courseDetails = WPCW_courses_getCourseDetails ( $ parentCourseID ) ; $ this -> loadUnitsForCourse ( ) ; }
Try to load details using a single unit.
Try to load details using a single unit .
// Get a list of all units for this course in absolute order