NAME

WeBWorK::Controller - a controller for the WeBWorK Mojolicious app. It is a subclass of the Mojolicious::Controller class with additional WeBWorK-specific fields.

METHODS

$c->ce([$new])

Return the course environment (WeBWorK::CourseEnvironment) associated with this request. If $new is specified, set the course environment to $new before returning the value. In this case the value of $new is also saved to the stash as 'ce'. This means that this value is available as $ce in the templates.

$c->db([$new])

Return the database (WeBWorK::DB) associated with this request. If $new is specified, set the database to $new before returning the value. In this case the value of $new is also saved to the stash as 'db'. This means that this is available as $db in the templates.

$c->authen([$new])

Return the authenticator (WeBWorK::Authen) associated with this request. If $new is specified, set the authenticator to $new before returning the value. In this case the value of $new is also saved to the stash as 'authen'. This means that this value is available as $authen in the templates.

$c->authz([$new])

Return the authorizer (WeBWorK::Authz) associated with this request. If $new is specified, set the authorizer to $new before returning the value. In this case the value of $new is also saved to the stash as 'authz'. This means that this value is available as $authz in the templates.

$c->submitTime([$new])

Return the time this request was received for processing, which we refer to as the submitTime. The time is recorded very early on in the processing of the request. If $new is specified, set submitTime to $new before returning the value.

ERROR OUTPUT FUNCTIONS

textMessage($c, $exception, $uuid, $time)

Format a message for HTML output reporting an exception and any associated warnings.

jsonMessage($c, $uuid, $time)

Format a JSON message for log output reporting an exception and any associated warnings.

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 169:

You forgot a '=back' before '=head1'