version 1.2, 2003/07/22 14:47:00
|
version 1.3, 2005/04/07 06:56:20
|
Line 72 href="http://www.lon-capa.org./">http://
|
Line 72 href="http://www.lon-capa.org./">http://
|
<li><code><span style='font-family: |
<li><code><span style='font-family: |
Courier'>appenv(%hash)</span></code> : the value of %hash is written to the |
Courier'>appenv(%hash)</span></code> : the value of %hash is written to the |
user envirnoment file, and will be restored for each access this user makes |
user envirnoment file, and will be restored for each access this user makes |
during this session, also modifies the %ENV for the current process </li> |
during this session, also modifies the %env for the current process </li> |
<li><code><span style='font-family: |
<li><code><span style='font-family: |
Courier'>delenv($regexp)</span></code> : removes all items from the session |
Courier'>delenv($regexp)</span></code> : removes all items from the session |
environment file that matches the regular expression in $regexp. The values |
environment file that matches the regular expression in $regexp. The values |
are also delted from the current processes %ENV. </li> |
are also delted from the current processes %env. </li> |
</ul> |
</ul> |
<h3><a name="user_information"></a><a name="_Toc421867059">User Information</a></h3> |
<h3><a name="user_information"></a><a name="_Toc421867059">User Information</a></h3> |
<ul type=disc> |
<ul type=disc> |
Line 226 href="http://www.lon-capa.org./">http://
|
Line 226 href="http://www.lon-capa.org./">http://
|
"Courier New"'>symbverify($symb,$thisfn):</span> verifies that $symb actually |
"Courier New"'>symbverify($symb,$thisfn):</span> verifies that $symb actually |
exists and is a possible symb for the URL in $thisfn, returns a 1 on success, |
exists and is a possible symb for the URL in $thisfn, returns a 1 on success, |
0 on failure, user must be in a course, as it assumes the existance of the |
0 on failure, user must be in a course, as it assumes the existance of the |
course init hash, and uses $ENV('request.course.id'}</li> |
course init hash, and uses $env('request.course.id'}</li> |
<li><span style='font-family: |
<li><span style='font-family: |
"Courier New"'>symbclean($symb):</span> removes versions numbers from a symb, |
"Courier New"'>symbclean($symb):</span> removes versions numbers from a symb, |
returns the cleaned symb</li> |
returns the cleaned symb</li> |
Line 247 href="http://www.lon-capa.org./">http://
|
Line 247 href="http://www.lon-capa.org./">http://
|
: return unique, unfakeable, receipt </li> |
: return unique, unfakeable, receipt </li> |
<li><code><span |
<li><code><span |
style='font-family:Courier'>receipt()</span></code> : API to ireceipt working |
style='font-family:Courier'>receipt()</span></code> : API to ireceipt working |
off of ENV values; given out to users </li> |
off of env values; given out to users </li> |
<li><code><span |
<li><code><span |
style='font-family:Courier'>countacc($url)</span></code> : count the number |
style='font-family:Courier'>countacc($url)</span></code> : count the number |
of accesses to a given URL </li> |
of accesses to a given URL </li> |
Line 275 style='"storing\/retreiving_data"'>Stori
|
Line 275 style='"storing\/retreiving_data"'>Stori
|
style='font-family:Courier'>store($storehash,$symb,$namespace,$udom,$uname)</span></code> |
style='font-family:Courier'>store($storehash,$symb,$namespace,$udom,$uname)</span></code> |
: stores hash permanently for this url; hashref needs to be given and should |
: stores hash permanently for this url; hashref needs to be given and should |
be a \%hashname; the remaining args aren't required and if they aren't passed |
be a \%hashname; the remaining args aren't required and if they aren't passed |
or are '' they will be derived from the ENV </li> |
or are '' they will be derived from the env </li> |
<li><code><span |
<li><code><span |
style='font-family:Courier'>cstore($storehash,$symb,$namespace,$udom,$uname)</span></code> |
style='font-family:Courier'>cstore($storehash,$symb,$namespace,$udom,$uname)</span></code> |
: same as store but uses critical subroutine </li> |
: same as store but uses critical subroutine </li> |