xo::update_query_variable (private)

 xo::update_query_variable old_query var value

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

Replace in a URL-query old occurrences of var with new value.

Parameters:
old_query
var
value
Returns:
pairs in a form suitable for export_vars

Partial Call Graph (max 5 caller/called nodes):
%3 test_api__context api__context (test xotcl-core) xo::update_query_variable xo::update_query_variable test_api__context->xo::update_query_variable

Testcases:
api__context
Source code:
    set query [list [list $var $value]]
    foreach {key value} [ns_set array [ns_parsequery $old_query]] {
      if {$key eq $var} continue
      lappend query [list $key $value]
    }
    return $query
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ]
Show another procedure: