WeBWorKdocs

sq_webwork:


Home
Current UR courses
Visitor page
Intro to WeBWorK
WeBWorK 2 Twiki
WW Community
Grant Support & awards
Discussion group
Problem library
Write/modify problems
Create & manage course
Tutorial on running a course
HowTos
FAQ
WeBWorK2 FAQ
Software Download
How to Install WW server
Feedback
Site Map
Change preferences
Change password





Prev | Next | reference

PG environment variables

Vital state information

$psvn
psvn (Problem set version number) is a number which identifies an individual problem set. This is the primary key in the record table defining the problem set.
$psvnNumber
A synonym for $psvn
$probNum
Problem number. This number identifies the order in which this problem appears in the problem set.
$questionNumber
Synonym for $probNum
$fileName
The path to the template for this problem (relative to the template directory.)
$probFileName
A synonym for $fileName
$problemSeed
The number used to initialize the random number generator. A problem seed is stored for each problem in each individualized problem set record. The template ($fileName) and seed ($problemSeed) completely determine the individual problem seen by the student. Changing the seed changes the coefficients in the problem. Using the same seed for all students gives them identical problems.
$displayMode
One of HTML (text mode), HTML_tth (formatted text mode) or Latex2HTML (typeset mode)
$languageMode
Obsolete synonym for $displayMode
$outputMode
Obsolete synonym for $displayMode

Problem Information

This information can be read, but altering it affects nothing outside the problem. The dates are guaranteed to be in ascending order.
$formattedOpenDate
Text string containing the date after which students will be able to view the problems.
$openDate
Number representing the date in the unix system. This is useful for comparing dates.
$formattedDueDate
Text string containing the due date of the problem set. After this date, answers are not recorded.
$dueDate
Number representing the date in the unix system. This is useful for comparing dates.
$formattedAnswerDate
Text string containing the date the answers will be viewable by students .
$answerDate
Number representing the date in the unix system. This is useful for comparing dates.
$numOfAttempts
The number of previous times this problem has been attempted. You can use this to trigger hints or other information.
$problemValue
A number (default is 1) representing the problem value within the set. Hard problems can be assigned a greater weight from the professor page.
$sessionKey
A string which is used as the time limited "password" for this session. (A session lasts from the login until the student logs out, or the session logs out because of inactivity for more than a specified period of time (usually set to about 20 minutes). After a timeout, the student resumes by entering their password again, and a new session key is issued. One possible use of the session key is to generate the problem seed so that the student sees a new problem set with every session. This might be useful for using WeBWorK to administer gateway exams.

Student Information

$sectionName
A text string -- usually containing the name of the professor administering the lecture session.
$sectionNumber
A synonym for $sectionName
$recitationName
A text string -- usually containing the name of the TA administering the recitation session or the time and place of the recitation.
$recitationNumber
A synonym for $recitationName
$setNumber
A string identifying the set.
$studentLogin
The student's login name. At the U of R this is usually the same as their user name for the campus e-mail system.
$studentName
Text string containing the student's full name.
$studentNID
Text string containing the student's identification number.

Answer Information

$inputs_ref
A reference to a hash containing all of the inputs from the HTML form. This can be used to access the students answers. ($inputs_ref->{Answer1} will obtain the students answer to the answer rule labeled "Answer1".) This data is certainly tainted and should be used with great care.
$refSubmittedAnswers
Obsolete -- list of answers labeled with the default answer label (= AnSwEr ???). Use inputs_ref instead.

Default values for evaluating answers

functAbsTolDefault
functLLimitDefault
functMaxConstantOfIntegration
functNumOfPoints
functRelPercentTolDefault
functULimitDefault
functVarDefault
functZeroLevelDefault
functZeroLevelTolDefault
numAbsTolDefault
numFormatDefault
numRelPercentTolDefault
numZeroLevelDefault
numZeroLevelTolDefault

Directories and URL's

cgiDirectory
cgiURL
classDirectory
courseName
courseScriptsDirectory
htmlDirectory
htmlURL
macroDirectory
templateDirectory
tempDirectory
tempURL
scriptDirectory
webworkDocsURL

<| Post or View Comments |>


Prev | Next | reference

Last update: Thursday, February 17, 2005 at 12:13:06 PM.
This site maintained using Manila and Frontier software.