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 /var/www/openacs.org/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 (optional, boolean, defaults to "true")
-item_ids (required)

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: