xo::db::CrClass proc ensure_item_ids_instantiated (public)

 xo::db::CrClass[i] ensure_item_ids_instantiated [ -initialize on|off ] \
    -item_ids item_ids 

Defined in packages/xotcl-core/tcl/cr-procs.tcl

Make sure, the objects all of the provided items_ids are instantiated (i.e. the same-named objects do exist as executable commands in the current thread).

Switches:
-initialize
(boolean) (defaults to "true") (optional)
-item_ids
(required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_link_tests link_tests (test xowiki) xo::db::CrClass proc ensure_item_ids_instantiated xo::db::CrClass proc ensure_item_ids_instantiated test_link_tests->xo::db::CrClass proc ensure_item_ids_instantiated

Testcases:
link_tests
Source code:
foreach item_id $item_ids {
  #if {![::nsf::is object ::$item_id]} { ns_log notice "===== we have to fetch ::$item_id"}
  :get_instance_from_db -item_id $item_id -initialize $initialize
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: