xo::PackageMgr instproc initialize (public)
<instance of xo::PackageMgr> initialize [ -ad_doc ad_doc ] \ [ -parameter parameter ] [ -package_id package_id ] [ -url url ] \ [ -user_id user_id ] [ -actual_query actual_query ] \ [ -original_url_and_query original_url_and_query ] \ [ -init_url init_url ] [ -keep_cc keep_cc ] \ [ -form_parameter form_parameter ] [ -export_vars export_vars ]
Defined in packages/xotcl-core/tcl/06-package-procs.tcl
Create the connection context ::xo::cc and a package object if these are none defined yet. The connection context ::xo::cc and the package object will be destroyed on cleanup, when the global variables are reclaimed. As a side effect this method sets in the calling context the query parameters and package_id as variables, using the "defaults" for default values. init_url false requires the package_id to be specified and a call to Package instproc set_url to complete initialization. keep_cc true means that the original connection context is preserved (i.e. not altered) in case it exists already.
- Switches:
- -ad_doc
(optional)- -parameter
(optional)- -package_id
(defaults to"0"
) (optional)- -url
(optional)- -user_id
(defaults to"-1"
) (optional)- -actual_query
(defaults to" "
) (optional)- -original_url_and_query
(optional)- -init_url
(defaults to"true"
) (optional)- -keep_cc
(defaults to"false"
) (optional)- -form_parameter
(optional)- -export_vars
(defaults to"true"
) (optional)- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- package_normalize_path, includelet_toc, includelet_childresources, xowiki_test_cases, link_tests, slot_interactions, path_resolve, create_form_with_form_instance