xowf::test_item::Question_manager method exam_base_time (public)

 <instance of xowf::test_item::Question_manager[i]> exam_base_time \
    [ -manager manager ] [ -answer_obj answer_obj ]

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

Calculate the exam base time for a student. This is the time reference, when the timer starts. Depending on whether the exam is synchronous, the time start is either the time when the exam is opened, or when the student starts the exam.

Switches:
-manager
(optional)
-answer_obj
(optional)
Returns:
time string as returned from the database

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

Testcases:
create_test_items
Source code:
if {[$manager property synchronized 0]} {
  set parent_obj [::xowiki::FormPage get_instance_from_db -item_id [$answer_obj parent_id]]
  set base_time [$parent_obj last_modified]
} else {
  set base_time [$answer_obj creation_date]
}
return $base_time
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: