template::request::create (public)

 template::request::create [ args... ]

Defined in packages/acs-templating/tcl/request-procs.tcl

Create the request data structure. Typically called at the beginning of the code for any page that accepts query parameters.

Options:
-params
A block of parameter declarations, separated by newlines. Equivalent to calling set_param for each parameter, but requiring slightly less typing.

Partial Call Graph (max 5 caller/called nodes):
%3 template::adp_level template::adp_level (public) template::form::create template::form::create (public) template::request::set_param template::request::set_param (public) template::request::create template::request::create template::request::create->template::adp_level template::request::create->template::form::create template::request::create->template::request::set_param

Testcases:
No testcase defined.
Source code:
    template::form::create request {*}$args

    set level [template::adp_level]

    # check for params so they can be created
    upvar #$level request:properties opts

    if { [info exists opts(params)] } {

    # strip carriage returns
        regsub -all -- {\r} $opts(params) {} param_data

        foreach param [split $param_data "\n"] {

            set param [string trim $param]
            if {$param eq {}} { continue }

            set_param {*}$param
        }
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: