ad_parameter_from_file (public)

 ad_parameter_from_file name [ package_key ]

Defined in packages/acs-tcl/tcl/defs-procs.tcl

This proc returns the value of a parameter that has been set in the parameters/ad.ini file. Note: The use of the parameters/ad.ini file is discouraged. Some sites need it to provide instance-specific parameter values that are independent of the contents of the apm_parameter tables.

name - The name of the parameter.
package_key (optional)
The parameter of the object or if it doesn't exist, the default.

Partial Call Graph (max 5 caller/called nodes):
%3 packages/acs-subsite/www/shared/parameters.tcl packages/acs-subsite/ www/shared/parameters.tcl ad_parameter_from_file ad_parameter_from_file packages/acs-subsite/www/shared/parameters.tcl->ad_parameter_from_file parameter::get parameter::get (public) parameter::get->ad_parameter_from_file parameter::get_from_package_key parameter::get_from_package_key (public) parameter::get_from_package_key->ad_parameter_from_file parameter::get_global_value parameter::get_global_value (public) parameter::get_global_value->ad_parameter_from_file

No testcase defined.
Source code:

    # The below is really a hack because none of the calls to ad_parameter in the system
    # actually call 'ad_parameter param_name acs-kernel'.

    if { $package_key eq "" || $package_key eq "acs-kernel"} {
        return [ns_config "ns/server/[ns_info server]/acs" $name]

    return [ns_config "ns/server/[ns_info server]/acs/$package_key" $name]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: