xowf::test_item::Question_manager method exam_base_time (public)
<instance of xowf::test_item::Question_manager> 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, object)
- -answer_obj (optional, object)
- Returns:
- time string as returned from the database
- Testcases:
- No testcase defined.
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_timeXQL Not present: Generic, PostgreSQL, Oracle