Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | Public Attributes | List of all members
mod_quiz_view_object Class Reference

Public Member Functions

 __get ($field)
 

Public Attributes

quiz_access_manager $accessmanager
 $accessmanager contains various access rules.
 
int $attemptcolumn
 $attemptcolumn contains the number of attempts done.
 
array $attemptobjs
 $attemptobjs quiz_attempt objects corresponding to $attempts.
 
array $attempts
 $attempts contains all the user's attempts at this quiz.
 
moodle_url $backtocourseurl
 $startattempturl URL for any Back to the course button.
 
string $buttontext
 $buttontext caption for the start attempt button. More...
 
bool $canedit
 $canedit whether the current user has the capability to edit the quiz.
 
bool $canreviewmine
 $canreviewmine whether the current user has the capability to review their own attempts.
 
moodle_url $editurl
 $editurl the URL for editing this quiz.
 
string $feedbackcolumn
 $feedbackcolumn contains any feedback for and attempt.
 
string $gradebookfeedback
 $gradebookfeedback contains any feedback for a gradebook.
 
int $gradecolumn
 $gradecolumn contains the grades of any attempts.
 
array $infomessages
 $infomessages of messages with information to display about the quiz.
 
object $lastfinishedattempt
 $lastfinishedattempt the last attempt from the attempts array.
 
int $markcolumn
 $markcolumn contains the marks of any attempt.
 
bool $moreattempts
 $moreattempts whether this user is allowed more attempts.
 
float $mygrade
 $mygrade contains the user's final grade for a quiz.
 
int $mygradeoverridden
 $mygradeoverridden contains an overriden grade.
 
int $numattempts
 $numattempts contains the total number of attempts.
 
int $overallstats
 $overallstats contains all marks for any attempt.
 
array $popupoptions
 options to use for the popup window, if required.
 
bool $popuprequired
 whether the attempt must take place in a popup window.
 
moodleform null $preflightcheckform
 $preflightcheckform confirmation form that must be submitted before an attempt is started, if required.
 
array $preventmessages
 $preventmessages of messages telling the user why they can't attempt the quiz now.
 
bool $quizhasquestions
 $quizhasquestions whether the quiz has any questions.
 
bool $showbacktocourse
 $showbacktocourse should we show a back to the course button?
 
moodle_url $startattempturl
 $startattempturl URL to start an attempt.
 
string $timenow
 $timenow contains a timestamp in string format.
 
bool $unfinished
 $unfinished contains 1 if an attempt is unfinished.
 

Member Data Documentation

◆ $buttontext

string mod_quiz_view_object::$buttontext

$buttontext caption for the start attempt button.

If this is null, show no button, or if it is '' show a back to the course button.


The documentation for this class was generated from the following file: