File:
[LON-CAPA] /
loncom /
html /
adm /
help /
ext_examples.library
Revision
1.2:
download - view:
text,
annotated -
select for diffs
Tue Feb 28 23:03:23 2006 UTC (18 years, 11 months ago) by
albertel
Branches:
MAIN
CVS tags:
version_2_9_X,
version_2_9_99_0,
version_2_9_1,
version_2_9_0,
version_2_8_X,
version_2_8_99_1,
version_2_8_99_0,
version_2_8_2,
version_2_8_1,
version_2_8_0,
version_2_7_X,
version_2_7_99_1,
version_2_7_99_0,
version_2_7_1,
version_2_7_0,
version_2_6_X,
version_2_6_99_1,
version_2_6_99_0,
version_2_6_3,
version_2_6_2,
version_2_6_1,
version_2_6_0,
version_2_5_X,
version_2_5_99_1,
version_2_5_99_0,
version_2_5_2,
version_2_5_1,
version_2_5_0,
version_2_4_X,
version_2_4_99_0,
version_2_4_2,
version_2_4_1,
version_2_4_0,
version_2_3_X,
version_2_3_99_0,
version_2_3_2,
version_2_3_1,
version_2_3_0,
version_2_2_X,
version_2_2_99_1,
version_2_2_99_0,
version_2_2_2,
version_2_2_1,
version_2_2_0,
version_2_1_99_3,
version_2_1_99_2,
version_2_1_99_1,
version_2_1_99_0,
version_2_11_0_RC2,
version_2_11_0_RC1,
version_2_10_X,
version_2_10_1,
version_2_10_0_RC2,
version_2_10_0_RC1,
version_2_10_0,
loncapaMITrelate_1,
language_hyphenation_merge,
language_hyphenation,
bz6209-base,
bz6209,
bz5969,
bz2851,
PRINT_INCOMPLETE_base,
PRINT_INCOMPLETE,
HEAD,
GCI_3,
GCI_2,
GCI_1,
BZ5971-printing-apage,
BZ5434-fox,
BZ4492-merge,
BZ4492-feature_horizontal_radioresponse
- adding more info about external::datestatus
<library>
<startoutext />
Some things to do with &EXT()<br />
<table border="1">
<tr><th>Incantation</th><th>result</th><th>Explanation</th></tr>
<tr><td>request.filename</td><td>&EXT('request.filename')</td>
<td>full internal path of the current resource</td></tr>
<tr><td>request.uri</td><td>&EXT('request.uri')</td>
<td>Uri of the currently viewed resource</td></tr>
<tr><td>request.state</td><td>&EXT('request.state')</td>
<td>state of the resource, eith construct or publish</td></tr>
<tr><td>user.name</td><td>&EXT('user.name')</td>
<td>username of user</td></tr>
<tr><td>user.domain</td><td>&EXT('user.domain')</td>
<td>Domain the user is in</td></tr>
<tr><td>user.course.sec</td><td>&EXT('user.course.sec')</td>
<td>Users's Course Section</td></tr>
<tr><td>environment.firstname</td><td>&EXT('environment.firstname')</td>
<td>User's firstname</td></tr>
<tr><td>environment.middlename</td><td>&EXT('environment.middlename')</td>
<td>User's middle name</td></tr>
<tr><td>environment.lastname</td><td>&EXT('environment.lastname')</td>
<td>User's lastname</td></tr>
<tr><td>environment.generation</td><td>&EXT('environment.generation')</td>
<td>Jr., Sr., III, etc.</td></tr>
<tr><td>environment.screenname</td><td>&EXT('environment.screenname')</td>
<td>User screen name (name that appears in FDBK postings)</td></tr>
<tr><td>environment.nickname</td><td>&EXT('environment.nickname')</td>
<td>User nick name. (Name the user prefers to be called in person</td></tr>
<tr><td>environment.id</td><td>&EXT('environment.id')</td>
<td>user id number</td></tr>
<tr><td>request.browser.version</td><td>&EXT('request.browser.version')</td>
<td>Version of the users Browser</td></tr>
<tr><td>request.browser.type</td><td>&EXT('request.browser.type')</td>
<td>What type of browser is the user using</td></tr>
<tr><td>course.description</td><td>&EXT('course.decription')</td>
<td>Decriptive name for a course</td></tr>
<tr><td>course.num</td><td>&EXT('course.num')</td>
<td>Internal Course Identifier</td></tr>
<tr><td>course.url</td><td>&EXT('course.url')</td>
<td>Current course toplevel map.</td></tr>
<tr><td>query.*</td><td></td>
<td>query.* allows access to the passed in form parameters</td></tr>
<tr><td>query.grade_target</td><td>&EXT('query.grade_target')</td>
<td>Ignore this. It isn't generally useful.</td></tr>
</table>
Other things:
<table border="1">
<tr><th>Incantation</th><th>result</th><th>Explanation</th></tr>
<tr><td>$external::target</td>
<td><display>$external::target</display></td>
<td>Whether we are printing (tex) or viewing on screen (web)</td></tr>
<tr><td>$external::part</td>
<td><display>$external::part</display></td>
<td>current Part id </td></tr>
<tr><td>$external::gradestatus</td>
<td><display>$external::gradestatus</display></td>
<td>The solved status of the current part.</td></tr>
<tr><td>$external::datestatus</td>
<td><tex>\verb+</tex><display>$external::datestatus</display><tex>+</tex></td>
<td>The current status of the problem
<table>
<tr><td>CLOSED</td>
<td>either before opendate or between due and answer date</td></tr>
<tr><td>CAN_ANSWER</td></tr>
<tr><td>CANNOT_ANSWER</td>
<td>still open but either exhausted tries has the problem correct or has been excused</td></tr>
<tr><td>SHOW_ANSWER </td>
<td>after answerdate</td></tr>
</table>
and some rare states that if they occur the problem isn't shown (you can safely ignore these):
<table>
<tr><td>NOT_YET_VIEWED</td>
<td>limited view period being used and student hasn't 'checked out' the problem yet</td></tr>
<tr><td>INVALID_ACCESS</td>
<td>ip restrictions in effect and user is at a banned IP </td></tr>
<tr><td>UNAVAILABLE</td>
<td>network problems are occuring</td></tr>
</table>
<tr><td>$external::randomseed</td>
<td><display>$external::randomseed</display></td>
<td>The randomseed currently in use.</td></tr>
<tr><td></td><td></td>
<td></td></tr>
</table>
<endouttext />
</library>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>