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)
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; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.9.2 | |
3.16.0 | Introduced. |