LLMS_Query_Quiz_Attempt::get_attempts()

Retrieve an array of LLMS_Quiz_Attempts for the given result set returned by the query


Return Return

(LLMS_Quiz_Attempt[])


Top ↑

Source Source

File: includes/class.llms.query.quiz.attempt.php

	public function get_attempts() {

		$attempts = array();
		$results  = $this->get_results();

		if ( $results ) {

			foreach ( $results as $result ) {
				$attempts[] = new LLMS_Quiz_Attempt( $result->id );
			}
		}

		if ( $this->get( 'suppress_filters' ) ) {
			return $attempts;
		}

		return apply_filters( $this->get_filter( 'get_attempts' ), $attempts );

	}


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.