public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/functions.php
/**
 * Function to get all of the module details.
 *
 * @since 1.0.0
 *
 * @param integer $moduleID The ID of the module for which we want to get details.
 *
 * @return object The details of the module as an object.
 */
Function to get all of the module details.

@param integer $moduleID The ID of the module for which we want to get details.

@return object The details of the module as an object.
Function to get all of the module details . @param integer $moduleID The ID of the module for which we want to get details . @return object The details of the module as an object .
function WPCW_modules_getModuleDetails( $moduleID ) {
	if ( ! $moduleID ) {
		return false;
	}
	global $wpcwdb, $wpdb;
	$wpdb->show_errors();
	$SQL = $wpdb->prepare( "SELECT *
			FROM $wpcwdb->modules
			WHERE module_id = %d
			", $moduleID );
	return $wpdb->get_row( $SQL );
}
function WPCW_modules_getModuleDetails ( $ moduleID ) { if ( ! $ moduleID ) { return false ; } global $ wpcwdb , $ wpdb ; $ wpdb -> show_errors ( ) ; $ SQL = $ wpdb -> prepare ( " SELECT *
			FROM  $ wpcwdb -> modules 
			WHERE module_id = %d
			 " , $ moduleID ) ; return $ wpdb -> get_row ( $ SQL ) ; }
Function to get all of the module details.
Function to get all of the module details .