public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/admin/functions.php
/**
 * Generate an array of pass marks for a select box.
 *
 * @since 1.0.0
 *
 * @param string $addBlank If specified, add a blank entry to the top of the list
 *
 * @return array A list of pass marks.
 */
Generate an array of pass marks for a select box.

@param string $addBlank If specified, add a blank entry to the top of the list

@return array A list of pass marks.
Generate an array of pass marks for a select box . @param string $addBlank If specified add a blank entry to the top of the list @return array A list of pass marks .
function WPCW_quizzes_getPercentageList( $addBlank = false ) {
	$list = array();
	if ( $addBlank ) {
		$list[] = $addBlank;
	}
	for ( $i = 100; $i > 0; $i -- ) {
		$list[ $i ] = $i . '%';
	}
	return $list;
}
function WPCW_quizzes_getPercentageList ( $ addBlank = false ) { $ list = array ( ) ; if ( $ addBlank ) { $ list [ ] = $ addBlank ; } for ( $ i = 100 ; $ i > 0 ; $ i -- ) { $ list [ $ i ] = $ i . '%' ; } return $ list ; }
Generate an array of pass marks for a select box.
Generate an array of pass marks for a select box .