LLMS_Query_Quiz_Attempt::get_attempts()
Retrieve an array of LLMS_Quiz_Attempts for the given result set returned by the query
Return Return
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 ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.16.0 | Introduced. |