xo::Context instproc get_parameters (public)

 <instance of xo::Context[i]> get_parameters

Defined in packages/xotcl-core/tcl/context-procs.tcl

Convenience routine for includelets. It combines the actual parameters from the call in the page (highest priority) with the values from the url (second priority) and the default values from the signature.

Partial Call Graph (max 5 caller/called nodes):
%3 test_xowiki_test_cases xowiki_test_cases (test xowiki) xo::Context instproc get_parameters xo::Context instproc get_parameters test_xowiki_test_cases->xo::Context instproc get_parameters

Testcases:
xowiki_test_cases
Source code:
set source [expr {[info exists :__caller_parameters]
                  ? [self] : [:info parent]}]
$source instvar __caller_parameters

#set n [expr {[info exists :name] ? ${:name} : "NONE"}]
#ns_log notice "$n: GET PARAMETERS source <$source> have [info exists __caller_parameters]"
if {![info exists :__including_page]} {
  #
  # An includelet is called from the top-level. The actual_query
  # might be cached, so we reset it here.
  #
  set :actual_query [::xo::cc actual_query]
}

if {[info exists __caller_parameters]} {
  :process_query_parameter -all_from_query false -caller_parameters $__caller_parameters
} else {
  :process_query_parameter -all_from_query false
}
:export_vars -level 2
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: