util::resources::resource_info_procs (public)
util::resources::resource_info_procs [ -prefix prefix ]
Defined in packages/acs-tcl/tcl/utilities-procs.tcl
Returns a list of "resource_info" procs, potentially prefixed by some namespace.
- Switches:
- -prefix (optional)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- resource_info_dicts
Source code: return [lmap proc_name [lsort [nsv_array names api_proc_doc ${prefix}*::resource_info]] { set d [nsv_get api_proc_doc $proc_name] dict with d { if {$varargs_p != 0 || "version" ni $switches0 || $switches1 ne "" || $positionals ne "" } { ns_log notice "=== ::util::resources::resource_info_procs proc $proc_name has non-matching signature\n" varargs_p $varargs_p switches0 $switches0 switches1 $switches1 continue } # # Check, if the proc body looks potentially correct # set body [api_get_body $proc_name] if {![string match *resourceDir* $body] || ![string match *resourceName* $body] || ![string match *cssFiles* $body] || ![string match *jsFiles* $body] || ![string match *cdnHost* $body] } { ns_log notice "=== ::util::resources::resource_info_procs proc $proc_name does not return a proper dict \n" $body continue } } set proc_name }]XQL Not present: PostgreSQL, Oracle Generic XQL file: packages/acs-tcl/tcl/utilities-procs.xql