LLMS_Quiz_Attempt::get_question_objects( boolean $cache = true )

Retrieve an array of attempt question objects


Description Description


Parameters Parameters

$cache

(boolean) (Optional) if true, save data to to the object for future gets

Default value: true


Top ↑

Return Return

(array)


Top ↑

Source Source

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

	public function get_question_objects( $cache = true ) {

		$questions = array();
		foreach ( $this->get_questions( $cache ) as $qdata ) {
			$questions[] = new LLMS_Quiz_Attempt_Question( $qdata );
		}
		return $questions;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.16.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: