LLMS_Quiz_Legacy::get_total_possible_points()
returns the total points possible
Description Description
Return Return
(int) [sum of all question points]
Source Source
File: includes/class.llms.quiz.legacy.php
public function get_total_possible_points() { $questions = $this->get_questions(); $points = 0; if ( ! empty( $questions ) ) { foreach ( $questions as $key => $value ) { $points += $value['points']; } } return ( 0 != $points ? $points : 0 ); }
Expand full source code Collapse full source code View on GitHub