Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

LLMS_Quiz_Attempt::calculate_point_weight()

Calculate the weight of each point


Return Return

(float)


Top ↑

Source Source

File: includes/models/model.llms.quiz.attempt.php

	private function calculate_point_weight() {
		$available = $this->get_count( 'available_points' );
		return ( $available > 0 ) ? ( 100 / $available ) : 0;
	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.9.2
3.16.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.