ad_parameter

EveAndersson.com : API Browser : ad_parameter

ad_parameter

ad_parameter name [ subsection ] [ default ]
Defined in packages/acs-core/defs-procs.tcl

Returns the value of a configuration parameter set in one of the .ini files in /web/yourdomain/parameters or in the package manager database tables. In case of a conflict, priority is given to the value in the database. If the parameter doesn't exist, returns the default specified as the third argument then the default value in the database (if appropriate) then the empty string if neither is specified. Note that AOLserver reads these files when the server starts up and stores parameters in an in-memory hash table. The plus side of this is that there is no hit to the file system and no need to memoize a call to ad_parameter. The minus side is that you have to restart the server if you want to test a change made to the .ini file.

Parameters:
name
subsection (optional)
default (optional)
[ show source ]

Show another procedure:

eve@eveandersson.com