Index: openacs-4/packages/acs-templating/www/doc/api/request.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/api/request.adp,v
diff -u -r1.2 -r1.2.2.1
--- openacs-4/packages/acs-templating/www/doc/api/request.adp 27 Oct 2014 16:40:18 -0000 1.2
+++ openacs-4/packages/acs-templating/www/doc/api/request.adp 25 Aug 2015 18:02:13 -0000 1.2.2.1
@@ -2,24 +2,31 @@
Transform, validate and report errors in the query parameters
-associated with a page request. This API is an alternative to Transform, validate and report errors in the query parameters
+associated with a page request. This API is an alternative to Initialize the data structure to store request parameters.
+ Initialize the data structure to store request parameters.
Should be called at the start of any page that takes request
-parameters.Page Request
Summary
ad_page_contract
-which should usually be preferred if you have ACS installed.Methods
+
+Page Request
+Summary
+ad_page_contract
+which should usually be preferred if you have ACS installed.Methods
+
template::request create
-
+parameters.
template::request set_param name -datatype datatype -multiple -optional -validate { { expression } { message } } -
Validates request parameter values and then sets a local + +
Validates request parameter values and then sets a local variable. Values are transformed if a transformation procedure exists for the specified datatype (i.e. the components of a -date are assembled into a single structure).
+ +template::request get_param name -Returns the value (or values if the multiple is used) -of the named parameter.
++Returns the value (or values if the multiple is used) +of the named parameter.
+template::request is_valid error_url -Boolean procedure for determining whether any validation errors -occurred while setting request parameters.
Boolean procedure for determining whether any validation errors +occurred while setting request parameters.
++itself, use self for the URL.
request create request set_param state_abbrev -datatype keyword -validate { @@ -59,12 +73,15 @@ if { ! [request is_valid "/mytemplates/request-error"] } { return } ... -