template::util::get_param (public, deprecated)
template::util::get_param name [ section ] [ key ]
Defined in packages/acs-templating/tcl/deprecated-procs.tcl
Deprecated. Invoking this procedure generates a warning.
Retrieve a stored parameter, or "" if no such parameter If section/key are present, read the parameter from the specified section.key in the INI file, and cache them under the given name
- Parameters:
- name (required)
- section (optional)
- key (optional)
- Testcases:
- No testcase defined.
Source code: ad_log_deprecated proc template::util::get_param if { ![nsv_exists __template_config $name] } { # Extract the parameter from the ini file if possible if { $section ne "" } { # Use the name if no key is specified if { $key ne "" } { set key $name } set value [ns_config $section $key ""] if {$value eq ""} { return "" } else { # Cache the value and return it template::util::set_param $name $value return $value } } else { # No such parameter found and no key/section specified return "" } } else { return [nsv_get __template_config $name] }XQL Not present: Generic, PostgreSQL, Oracle