subsite::util::packages (public)

 subsite::util::packages [ -node_id node_id ]

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

Return a list of package_id's for the subsite containing node_id This is a memoized function which caches for 20 minutes.

Switches:
-node_id (optional)
Author:
Jeff Davis davis@xarg.net
Created:
2004-05-07
See Also:
  • subsite::util::packages_no_mem

Partial Call Graph (max 5 caller/called nodes):
%3 test_subsite_api subsite_api (test acs-subsite) subsite::util::packages subsite::util::packages test_subsite_api->subsite::util::packages site_node::closest_ancestor_package site_node::closest_ancestor_package (public) subsite::util::packages->site_node::closest_ancestor_package subsite::package_keys subsite::package_keys (public) subsite::util::packages->subsite::package_keys subsite::util::packages_no_cache subsite::util::packages_no_cache (private) subsite::util::packages->subsite::util::packages_no_cache util_memoize util_memoize (public) subsite::util::packages->util_memoize packages/categories/lib/contributions.tcl packages/categories/ lib/contributions.tcl packages/categories/lib/contributions.tcl->subsite::util::packages packages/categories/lib/list-categories.tcl packages/categories/ lib/list-categories.tcl packages/categories/lib/list-categories.tcl->subsite::util::packages packages/search/www/search.tcl packages/search/ www/search.tcl packages/search/www/search.tcl->subsite::util::packages

Testcases:
subsite_api
Source code:
    set subsite_node_id [site_node::closest_ancestor_package  -package_key [subsite::package_keys]  -node_id $node_id  -include_self  -element node_id]

    return [util_memoize [list subsite::util::packages_no_cache -node_id $subsite_node_id] 1200]
XQL Not present:
Generic
PostgreSQL XQL file:
packages/acs-subsite/tcl/subsite-procs-postgresql.xql

Oracle XQL file:
packages/acs-subsite/tcl/subsite-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: