public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/classes/unitfrontend.php
/**
		 * Get the specified question to show the user. It should be 0-indexed.
		 *
		 * @param Integer $questionToFetch The index of the question to fetch.
		 *
		 * @return Object The question object, or false if the index is out of range.
		 */
Get the specified question to show the user. It should be 0-indexed.
@param Integer $questionToFetch The index of the question to fetch.

@return Object The question object, or false if the index is out of range.
Get the specified question to show the user . It should be 0 - indexed . @param Integer $questionToFetch The index of the question to fetch . @return Object The question object or false if the index is out of range .
public function fetch_paging_getQuestion( $questionToFetch ) {
			if ( $questionToFetch < 0 || empty( $this->unitQuizDetails->questions ) ) {
				return false;
			}
			$questionIDs = array_keys( $this->unitQuizDetails->questions );
			if ( $questionToFetch < count( $questionIDs ) ) {
				$objectID = $questionIDs[ $questionToFetch ];
				return $this->unitQuizDetails->questions[ $objectID ];
			}
			return false;
		}
public function fetch_paging_getQuestion ( $ questionToFetch ) { if ( $ questionToFetch < 0 || empty ( $ this -> unitQuizDetails -> questions ) ) { return false ; } $ questionIDs = array_keys ( $ this -> unitQuizDetails -> questions ) ; if ( $ questionToFetch < count ( $ questionIDs ) ) { $ objectID = $ questionIDs [ $ questionToFetch ] ; return $ this -> unitQuizDetails -> questions [ $ objectID ] ; } return false ; }
Get the specified question to show the user.
Get the specified question to show the user .
// Get a list of index => Question IDs so that we can do a direct // index into the list of questions. // Ensure question is in range, and return it.