xowf::test_item::Answer_manager method student_submissions_exist (public)

 <instance of xowf::test_item::Answer_manager[i]> student_submissions_exist \
    wf

Defined in packages/xowf/tcl/test-item-procs.tcl

Returns 1 if there are student submissions. The method returns already true, when a student has started to work on this exam. This method could be optimized if necessary via caching the wf_instances or a more specific database query.

Parameters:
wf

Partial Call Graph (max 5 caller/called nodes):
%3 test_create_test_items create_test_items (test xowf) xowf::test_item::Answer_manager instproc student_submissions_exist xowf::test_item::Answer_manager instproc student_submissions_exist test_create_test_items->xowf::test_item::Answer_manager instproc student_submissions_exist

Testcases:
create_test_items
Source code:
set items [:get_wf_instances $wf]
foreach i [$items children] {
  if {[$i property try_out_mode] ne "1"} {
    #ns_log notice "==================== student_submissions_exist 1"
    return 1
  }
}
#ns_log notice "==================== student_submissions_exist 0"
return 0
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: