*/ namespace oat\taoQtiTest\models; use oat\oatbox\service\ConfigurableService; use oat\taoQtiTest\models\runner\session\TestSession; class SectionPauseService extends ConfigurableService { const SERVICE_ID = 'taoQtiTest/SectionPauseService'; /** * Checked the given session could be paused at some point * (in other words : is section pause enabled) * @param $session * @return bool */ public function couldBePaused(TestSession $session = null) { return false; } /** * Checked that section can be paused * @param $session * @return bool */ public function isPausable(TestSession $session = null) { return false; } /** * Check if we can move backward : when leaving a pausable section, * we can't move backward. * * @param TestSession $session * @return bool */ public function canMoveBackward(TestSession $session = null) { return true; } }