<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.moodle.org/dev/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dima+kekc</id>
	<title>MoodleDocs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.moodle.org/dev/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dima+kekc"/>
	<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/Special:Contributions/Dima_kekc"/>
	<updated>2026-08-15T15:46:02Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=File:13.PNG&amp;diff=48716</id>
		<title>File:13.PNG</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=File:13.PNG&amp;diff=48716"/>
		<updated>2015-10-08T12:20:32Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48715</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48715"/>
		<updated>2015-10-08T12:20:16Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: /* Finishing quiz without summary page */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quiz ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quiz user sees a summary page asking to confirm quiz finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quiz without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quiz page. It could be &amp;quot;Submit and finish&amp;quot; button instead of &amp;quot;Next&amp;quot; on the last page of the quiz&lt;br /&gt;
&lt;br /&gt;
[[File:3н.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing this button user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4н.jpg]]&lt;br /&gt;
&lt;br /&gt;
Another way to avoid the summary page is to add a submit and finish button to every page of the quiz. The student doesn`t need to click next button to the last page and can finish quiz anywhere.&lt;br /&gt;
&lt;br /&gt;
[[File:13.PNG]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new point to Layout menu of quiz. It can be an advanced option and seen only after clicking &amp;quot;Show more&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[File:11a.PNG]]&lt;br /&gt;
&lt;br /&gt;
New option will contain information block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:12.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quiz:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag in the database ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some idea how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure by adding a new column to mdl_quiz table&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quiz.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The last page of the quiz redirects us to the summary page. Now it should be checked if summery page should be shawn. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We can create this fork next way:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
next button sends a form with different properties of current and next page (look moodle\mod\quiz\renderer.php - attempt_form function). Inside this function we can check the hide-flag from database and send additional value by form.&lt;br /&gt;
Another script (moodle\mod\quiz\process_attempt.php) catches this form and checks different given properties. &lt;br /&gt;
The properties are:&lt;br /&gt;
&lt;br /&gt;
    // Get submitted parameters.&lt;br /&gt;
    $attemptid     = required_param(&#039;attempt&#039;,  PARAM_INT);&lt;br /&gt;
    $thispage      = optional_param(&#039;thispage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $nextpage      = optional_param(&#039;nextpage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $next          = optional_param(&#039;next&#039;,          false, PARAM_BOOL);&lt;br /&gt;
    $finishattempt = optional_param(&#039;finishattempt&#039;, false, PARAM_BOOL);&lt;br /&gt;
    $timeup        = optional_param(&#039;timeup&#039;,        0,      PARAM_BOOL); // True if form was submitted by timer.&lt;br /&gt;
    $scrollpos     = optional_param(&#039;scrollpos&#039;,    null ,     PARAM_RAW);&lt;br /&gt;
    // Here we can catch our hide-flag&lt;br /&gt;
&lt;br /&gt;
And then in the place:&lt;br /&gt;
&lt;br /&gt;
    if ($page == -1) {    $nexturl = $attemptobj-&amp;gt;summary_url(); }&lt;br /&gt;
&lt;br /&gt;
we can add checking hide-flag and if we need hide the summary page set the $finishattempt variable as true.&lt;br /&gt;
&lt;br /&gt;
If we need show the confirm window before redirecting to preview page we can use &lt;br /&gt;
&lt;br /&gt;
$button-&amp;gt;add_action(new confirm_action(get_string(&#039;confirmclose&#039;, &#039;quiz&#039;), null, get_string(&#039;submitallandfinish&#039;, &#039;quiz&#039;))); &lt;br /&gt;
&lt;br /&gt;
for the &amp;quot;next&amp;quot; button on the last attempt page.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48713</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48713"/>
		<updated>2015-10-08T09:29:33Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: /* Finishing quiz without summary page */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quiz ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quiz user sees a summary page asking to confirm quiz finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quiz without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quiz page. It could be &amp;quot;Submit and finish&amp;quot; button instead of &amp;quot;Next&amp;quot; on the last page of the quiz&lt;br /&gt;
&lt;br /&gt;
[[File:3н.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing this button user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4н.jpg]]&lt;br /&gt;
&lt;br /&gt;
Another way to avoid the summary page is to add a submit and finish button to every page of the quiz. The student doesn`t need to click next button to the last page and can finish quiz anywhere.&lt;br /&gt;
&lt;br /&gt;
[[File:13.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new point to Layout menu of quiz. It can be an advanced option and seen only after clicking &amp;quot;Show more&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[File:11a.PNG]]&lt;br /&gt;
&lt;br /&gt;
New option will contain information block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:12.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quiz:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag in the database ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some idea how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure by adding a new column to mdl_quiz table&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quiz.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The last page of the quiz redirects us to the summary page. Now it should be checked if summery page should be shawn. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We can create this fork next way:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
next button sends a form with different properties of current and next page (look moodle\mod\quiz\renderer.php - attempt_form function). Inside this function we can check the hide-flag from database and send additional value by form.&lt;br /&gt;
Another script (moodle\mod\quiz\process_attempt.php) catches this form and checks different given properties. &lt;br /&gt;
The properties are:&lt;br /&gt;
&lt;br /&gt;
    // Get submitted parameters.&lt;br /&gt;
    $attemptid     = required_param(&#039;attempt&#039;,  PARAM_INT);&lt;br /&gt;
    $thispage      = optional_param(&#039;thispage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $nextpage      = optional_param(&#039;nextpage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $next          = optional_param(&#039;next&#039;,          false, PARAM_BOOL);&lt;br /&gt;
    $finishattempt = optional_param(&#039;finishattempt&#039;, false, PARAM_BOOL);&lt;br /&gt;
    $timeup        = optional_param(&#039;timeup&#039;,        0,      PARAM_BOOL); // True if form was submitted by timer.&lt;br /&gt;
    $scrollpos     = optional_param(&#039;scrollpos&#039;,    null ,     PARAM_RAW);&lt;br /&gt;
    // Here we can catch our hide-flag&lt;br /&gt;
&lt;br /&gt;
And then in the place:&lt;br /&gt;
&lt;br /&gt;
    if ($page == -1) {    $nexturl = $attemptobj-&amp;gt;summary_url(); }&lt;br /&gt;
&lt;br /&gt;
we can add checking hide-flag and if we need hide the summary page set the $finishattempt variable as true.&lt;br /&gt;
&lt;br /&gt;
If we need show the confirm window before redirecting to preview page we can use &lt;br /&gt;
&lt;br /&gt;
$button-&amp;gt;add_action(new confirm_action(get_string(&#039;confirmclose&#039;, &#039;quiz&#039;), null, get_string(&#039;submitallandfinish&#039;, &#039;quiz&#039;))); &lt;br /&gt;
&lt;br /&gt;
for the &amp;quot;next&amp;quot; button on the last attempt page.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48707</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48707"/>
		<updated>2015-10-08T09:20:53Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: /* Finishing quiz without summary page */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quiz ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quiz user sees a summary page asking to confirm quiz finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quiz without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quiz page. It could be &amp;quot;Submit and finish&amp;quot; button instead of &amp;quot;Next&amp;quot; on the last page of the quiz&lt;br /&gt;
&lt;br /&gt;
[[File:3н.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing this button user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4н.jpg]]&lt;br /&gt;
&lt;br /&gt;
Another way to avoid the summary page is to add a submit and finish button to every page of the quiz. The student doesn`t need to click next button to the last page and can finish quiz anywhere.&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new point to Layout menu of quiz. It can be an advanced option and seen only after clicking &amp;quot;Show more&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[File:11a.PNG]]&lt;br /&gt;
&lt;br /&gt;
New option will contain information block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:12.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quiz:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag in the database ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some idea how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure by adding a new column to mdl_quiz table&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quiz.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The last page of the quiz redirects us to the summary page. Now it should be checked if summery page should be shawn. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We can create this fork next way:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
next button sends a form with different properties of current and next page (look moodle\mod\quiz\renderer.php - attempt_form function). Inside this function we can check the hide-flag from database and send additional value by form.&lt;br /&gt;
Another script (moodle\mod\quiz\process_attempt.php) catches this form and checks different given properties. &lt;br /&gt;
The properties are:&lt;br /&gt;
&lt;br /&gt;
    // Get submitted parameters.&lt;br /&gt;
    $attemptid     = required_param(&#039;attempt&#039;,  PARAM_INT);&lt;br /&gt;
    $thispage      = optional_param(&#039;thispage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $nextpage      = optional_param(&#039;nextpage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $next          = optional_param(&#039;next&#039;,          false, PARAM_BOOL);&lt;br /&gt;
    $finishattempt = optional_param(&#039;finishattempt&#039;, false, PARAM_BOOL);&lt;br /&gt;
    $timeup        = optional_param(&#039;timeup&#039;,        0,      PARAM_BOOL); // True if form was submitted by timer.&lt;br /&gt;
    $scrollpos     = optional_param(&#039;scrollpos&#039;,    null ,     PARAM_RAW);&lt;br /&gt;
    // Here we can catch our hide-flag&lt;br /&gt;
&lt;br /&gt;
And then in the place:&lt;br /&gt;
&lt;br /&gt;
    if ($page == -1) {    $nexturl = $attemptobj-&amp;gt;summary_url(); }&lt;br /&gt;
&lt;br /&gt;
we can add checking hide-flag and if we need hide the summary page set the $finishattempt variable as true.&lt;br /&gt;
&lt;br /&gt;
If we need show the confirm window before redirecting to preview page we can use &lt;br /&gt;
&lt;br /&gt;
$button-&amp;gt;add_action(new confirm_action(get_string(&#039;confirmclose&#039;, &#039;quiz&#039;), null, get_string(&#039;submitallandfinish&#039;, &#039;quiz&#039;))); &lt;br /&gt;
&lt;br /&gt;
for the &amp;quot;next&amp;quot; button on the last attempt page.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48631</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48631"/>
		<updated>2015-09-27T13:08:51Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: /* Turning off the summary page */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quiz ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quiz user sees a summary page asking to confirm quiz finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quiz without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quiz page. It could be &amp;quot;Submit and finish&amp;quot; button instead of &amp;quot;Next&amp;quot; on the last page of the quiz&lt;br /&gt;
&lt;br /&gt;
[[File:3н.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing this button user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4н.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new point to Layout menu of quiz. It can be an advanced option and seen only after clicking &amp;quot;Show more&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[File:11a.PNG]]&lt;br /&gt;
&lt;br /&gt;
New option will contain information block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:12.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quiz:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag in the database ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some idea how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure by adding a new column to mdl_quiz table&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quiz.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The last page of the quiz redirects us to the summary page. Now it should be checked if summery page should be shawn. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We can create this fork next way:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
next button sends a form with different properties of current and next page (look moodle\mod\quiz\renderer.php - attempt_form function). Inside this function we can check the hide-flag from database and send additional value by form.&lt;br /&gt;
Another script (moodle\mod\quiz\process_attempt.php) catches this form and checks different given properties. &lt;br /&gt;
The properties are:&lt;br /&gt;
&lt;br /&gt;
    // Get submitted parameters.&lt;br /&gt;
    $attemptid     = required_param(&#039;attempt&#039;,  PARAM_INT);&lt;br /&gt;
    $thispage      = optional_param(&#039;thispage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $nextpage      = optional_param(&#039;nextpage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $next          = optional_param(&#039;next&#039;,          false, PARAM_BOOL);&lt;br /&gt;
    $finishattempt = optional_param(&#039;finishattempt&#039;, false, PARAM_BOOL);&lt;br /&gt;
    $timeup        = optional_param(&#039;timeup&#039;,        0,      PARAM_BOOL); // True if form was submitted by timer.&lt;br /&gt;
    $scrollpos     = optional_param(&#039;scrollpos&#039;,    null ,     PARAM_RAW);&lt;br /&gt;
    // Here we can catch our hide-flag&lt;br /&gt;
&lt;br /&gt;
And then in the place:&lt;br /&gt;
&lt;br /&gt;
    if ($page == -1) {    $nexturl = $attemptobj-&amp;gt;summary_url(); }&lt;br /&gt;
&lt;br /&gt;
we can add checking hide-flag and if we need hide the summary page set the $finishattempt variable as true.&lt;br /&gt;
&lt;br /&gt;
If we need show the confirm window before redirecting to preview page we can use &lt;br /&gt;
&lt;br /&gt;
$button-&amp;gt;add_action(new confirm_action(get_string(&#039;confirmclose&#039;, &#039;quiz&#039;), null, get_string(&#039;submitallandfinish&#039;, &#039;quiz&#039;))); &lt;br /&gt;
&lt;br /&gt;
for the &amp;quot;next&amp;quot; button on the last attempt page.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48630</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48630"/>
		<updated>2015-09-27T13:08:06Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: /* Turning off the summary page */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quiz ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quiz user sees a summary page asking to confirm quiz finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quiz without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quiz page. It could be &amp;quot;Submit and finish&amp;quot; button instead of &amp;quot;Next&amp;quot; on the last page of the quiz&lt;br /&gt;
&lt;br /&gt;
[[File:3н.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing this button user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4н.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new point to Layout menu of quiz. It can be an advanced option and seen only after clicking &amp;quot;Show more&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[File:11a.PNG]]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:12.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quiz:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag in the database ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some idea how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure by adding a new column to mdl_quiz table&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quiz.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The last page of the quiz redirects us to the summary page. Now it should be checked if summery page should be shawn. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We can create this fork next way:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
next button sends a form with different properties of current and next page (look moodle\mod\quiz\renderer.php - attempt_form function). Inside this function we can check the hide-flag from database and send additional value by form.&lt;br /&gt;
Another script (moodle\mod\quiz\process_attempt.php) catches this form and checks different given properties. &lt;br /&gt;
The properties are:&lt;br /&gt;
&lt;br /&gt;
    // Get submitted parameters.&lt;br /&gt;
    $attemptid     = required_param(&#039;attempt&#039;,  PARAM_INT);&lt;br /&gt;
    $thispage      = optional_param(&#039;thispage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $nextpage      = optional_param(&#039;nextpage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $next          = optional_param(&#039;next&#039;,          false, PARAM_BOOL);&lt;br /&gt;
    $finishattempt = optional_param(&#039;finishattempt&#039;, false, PARAM_BOOL);&lt;br /&gt;
    $timeup        = optional_param(&#039;timeup&#039;,        0,      PARAM_BOOL); // True if form was submitted by timer.&lt;br /&gt;
    $scrollpos     = optional_param(&#039;scrollpos&#039;,    null ,     PARAM_RAW);&lt;br /&gt;
    // Here we can catch our hide-flag&lt;br /&gt;
&lt;br /&gt;
And then in the place:&lt;br /&gt;
&lt;br /&gt;
    if ($page == -1) {    $nexturl = $attemptobj-&amp;gt;summary_url(); }&lt;br /&gt;
&lt;br /&gt;
we can add checking hide-flag and if we need hide the summary page set the $finishattempt variable as true.&lt;br /&gt;
&lt;br /&gt;
If we need show the confirm window before redirecting to preview page we can use &lt;br /&gt;
&lt;br /&gt;
$button-&amp;gt;add_action(new confirm_action(get_string(&#039;confirmclose&#039;, &#039;quiz&#039;), null, get_string(&#039;submitallandfinish&#039;, &#039;quiz&#039;))); &lt;br /&gt;
&lt;br /&gt;
for the &amp;quot;next&amp;quot; button on the last attempt page.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=File:11a.PNG&amp;diff=48629</id>
		<title>File:11a.PNG</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=File:11a.PNG&amp;diff=48629"/>
		<updated>2015-09-27T13:07:29Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48628</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48628"/>
		<updated>2015-09-27T13:07:15Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: /* Turning off the summary page */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quiz ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quiz user sees a summary page asking to confirm quiz finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quiz without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quiz page. It could be &amp;quot;Submit and finish&amp;quot; button instead of &amp;quot;Next&amp;quot; on the last page of the quiz&lt;br /&gt;
&lt;br /&gt;
[[File:3н.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing this button user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4н.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new point to Layout menu of quiz. It can be an advanced option and seen only after clicking &amp;quot;Show more&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[File:11a.PNG]]&lt;br /&gt;
&lt;br /&gt;
[[File:12.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quiz:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag in the database ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some idea how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure by adding a new column to mdl_quiz table&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quiz.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The last page of the quiz redirects us to the summary page. Now it should be checked if summery page should be shawn. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We can create this fork next way:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
next button sends a form with different properties of current and next page (look moodle\mod\quiz\renderer.php - attempt_form function). Inside this function we can check the hide-flag from database and send additional value by form.&lt;br /&gt;
Another script (moodle\mod\quiz\process_attempt.php) catches this form and checks different given properties. &lt;br /&gt;
The properties are:&lt;br /&gt;
&lt;br /&gt;
    // Get submitted parameters.&lt;br /&gt;
    $attemptid     = required_param(&#039;attempt&#039;,  PARAM_INT);&lt;br /&gt;
    $thispage      = optional_param(&#039;thispage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $nextpage      = optional_param(&#039;nextpage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $next          = optional_param(&#039;next&#039;,          false, PARAM_BOOL);&lt;br /&gt;
    $finishattempt = optional_param(&#039;finishattempt&#039;, false, PARAM_BOOL);&lt;br /&gt;
    $timeup        = optional_param(&#039;timeup&#039;,        0,      PARAM_BOOL); // True if form was submitted by timer.&lt;br /&gt;
    $scrollpos     = optional_param(&#039;scrollpos&#039;,    null ,     PARAM_RAW);&lt;br /&gt;
    // Here we can catch our hide-flag&lt;br /&gt;
&lt;br /&gt;
And then in the place:&lt;br /&gt;
&lt;br /&gt;
    if ($page == -1) {    $nexturl = $attemptobj-&amp;gt;summary_url(); }&lt;br /&gt;
&lt;br /&gt;
we can add checking hide-flag and if we need hide the summary page set the $finishattempt variable as true.&lt;br /&gt;
&lt;br /&gt;
If we need show the confirm window before redirecting to preview page we can use &lt;br /&gt;
&lt;br /&gt;
$button-&amp;gt;add_action(new confirm_action(get_string(&#039;confirmclose&#039;, &#039;quiz&#039;), null, get_string(&#039;submitallandfinish&#039;, &#039;quiz&#039;))); &lt;br /&gt;
&lt;br /&gt;
for the &amp;quot;next&amp;quot; button on the last attempt page.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=File:11.PNG&amp;diff=48627</id>
		<title>File:11.PNG</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=File:11.PNG&amp;diff=48627"/>
		<updated>2015-09-27T13:05:25Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: Dima kekc uploaded a new version of File:11.PNG&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=File:12.PNG&amp;diff=48626</id>
		<title>File:12.PNG</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=File:12.PNG&amp;diff=48626"/>
		<updated>2015-09-27T13:04:01Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=File:11.PNG&amp;diff=48625</id>
		<title>File:11.PNG</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=File:11.PNG&amp;diff=48625"/>
		<updated>2015-09-27T12:52:12Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48624</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48624"/>
		<updated>2015-09-27T12:51:56Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: /* Turning off the summary page */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quiz ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quiz user sees a summary page asking to confirm quiz finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quiz without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quiz page. It could be &amp;quot;Submit and finish&amp;quot; button instead of &amp;quot;Next&amp;quot; on the last page of the quiz&lt;br /&gt;
&lt;br /&gt;
[[File:3н.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing this button user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4н.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new point to Layout menu of quiz. It can be an advanced option and seen only after clicking &amp;quot;Show more&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[File:11.PNG]]&lt;br /&gt;
&lt;br /&gt;
[[File:12.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quiz:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag in the database ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some idea how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure by adding a new column to mdl_quiz table&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quiz.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The last page of the quiz redirects us to the summary page. Now it should be checked if summery page should be shawn. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We can create this fork next way:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
next button sends a form with different properties of current and next page (look moodle\mod\quiz\renderer.php - attempt_form function). Inside this function we can check the hide-flag from database and send additional value by form.&lt;br /&gt;
Another script (moodle\mod\quiz\process_attempt.php) catches this form and checks different given properties. &lt;br /&gt;
The properties are:&lt;br /&gt;
&lt;br /&gt;
    // Get submitted parameters.&lt;br /&gt;
    $attemptid     = required_param(&#039;attempt&#039;,  PARAM_INT);&lt;br /&gt;
    $thispage      = optional_param(&#039;thispage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $nextpage      = optional_param(&#039;nextpage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $next          = optional_param(&#039;next&#039;,          false, PARAM_BOOL);&lt;br /&gt;
    $finishattempt = optional_param(&#039;finishattempt&#039;, false, PARAM_BOOL);&lt;br /&gt;
    $timeup        = optional_param(&#039;timeup&#039;,        0,      PARAM_BOOL); // True if form was submitted by timer.&lt;br /&gt;
    $scrollpos     = optional_param(&#039;scrollpos&#039;,    null ,     PARAM_RAW);&lt;br /&gt;
    // Here we can catch our hide-flag&lt;br /&gt;
&lt;br /&gt;
And then in the place:&lt;br /&gt;
&lt;br /&gt;
    if ($page == -1) {    $nexturl = $attemptobj-&amp;gt;summary_url(); }&lt;br /&gt;
&lt;br /&gt;
we can add checking hide-flag and if we need hide the summary page set the $finishattempt variable as true.&lt;br /&gt;
&lt;br /&gt;
If we need show the confirm window before redirecting to preview page we can use &lt;br /&gt;
&lt;br /&gt;
$button-&amp;gt;add_action(new confirm_action(get_string(&#039;confirmclose&#039;, &#039;quiz&#039;), null, get_string(&#039;submitallandfinish&#039;, &#039;quiz&#039;))); &lt;br /&gt;
&lt;br /&gt;
for the &amp;quot;next&amp;quot; button on the last attempt page.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=File:4%D0%BD.jpg&amp;diff=48623</id>
		<title>File:4н.jpg</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=File:4%D0%BD.jpg&amp;diff=48623"/>
		<updated>2015-09-27T12:40:49Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48622</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48622"/>
		<updated>2015-09-27T12:40:31Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: /* Finishing quiz without summary page */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quiz ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quiz user sees a summary page asking to confirm quiz finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quiz without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quiz page. It could be &amp;quot;Submit and finish&amp;quot; button instead of &amp;quot;Next&amp;quot; on the last page of the quiz&lt;br /&gt;
&lt;br /&gt;
[[File:3н.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing this button user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4н.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add yes/no trigger to Layout menu of quiz.&lt;br /&gt;
&lt;br /&gt;
[[File:5.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quiz:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag in the database ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some idea how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure by adding a new column to mdl_quiz table&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quiz.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The last page of the quiz redirects us to the summary page. Now it should be checked if summery page should be shawn. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We can create this fork next way:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
next button sends a form with different properties of current and next page (look moodle\mod\quiz\renderer.php - attempt_form function). Inside this function we can check the hide-flag from database and send additional value by form.&lt;br /&gt;
Another script (moodle\mod\quiz\process_attempt.php) catches this form and checks different given properties. &lt;br /&gt;
The properties are:&lt;br /&gt;
&lt;br /&gt;
    // Get submitted parameters.&lt;br /&gt;
    $attemptid     = required_param(&#039;attempt&#039;,  PARAM_INT);&lt;br /&gt;
    $thispage      = optional_param(&#039;thispage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $nextpage      = optional_param(&#039;nextpage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $next          = optional_param(&#039;next&#039;,          false, PARAM_BOOL);&lt;br /&gt;
    $finishattempt = optional_param(&#039;finishattempt&#039;, false, PARAM_BOOL);&lt;br /&gt;
    $timeup        = optional_param(&#039;timeup&#039;,        0,      PARAM_BOOL); // True if form was submitted by timer.&lt;br /&gt;
    $scrollpos     = optional_param(&#039;scrollpos&#039;,    null ,     PARAM_RAW);&lt;br /&gt;
    // Here we can catch our hide-flag&lt;br /&gt;
&lt;br /&gt;
And then in the place:&lt;br /&gt;
&lt;br /&gt;
    if ($page == -1) {    $nexturl = $attemptobj-&amp;gt;summary_url(); }&lt;br /&gt;
&lt;br /&gt;
we can add checking hide-flag and if we need hide the summary page set the $finishattempt variable as true.&lt;br /&gt;
&lt;br /&gt;
If we need show the confirm window before redirecting to preview page we can use &lt;br /&gt;
&lt;br /&gt;
$button-&amp;gt;add_action(new confirm_action(get_string(&#039;confirmclose&#039;, &#039;quiz&#039;), null, get_string(&#039;submitallandfinish&#039;, &#039;quiz&#039;))); &lt;br /&gt;
&lt;br /&gt;
for the &amp;quot;next&amp;quot; button on the last attempt page.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48621</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48621"/>
		<updated>2015-09-27T12:40:12Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: /* Finishing quiz without summary page */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quiz ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quiz user sees a summary page asking to confirm quiz finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quiz without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quiz page. It could be &amp;quot;Submit and finish&amp;quot; button instead of &amp;quot;Next&amp;quot; on the last page of the quiz&lt;br /&gt;
&lt;br /&gt;
[[File:3н.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing this button user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add yes/no trigger to Layout menu of quiz.&lt;br /&gt;
&lt;br /&gt;
[[File:5.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quiz:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag in the database ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some idea how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure by adding a new column to mdl_quiz table&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quiz.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The last page of the quiz redirects us to the summary page. Now it should be checked if summery page should be shawn. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We can create this fork next way:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
next button sends a form with different properties of current and next page (look moodle\mod\quiz\renderer.php - attempt_form function). Inside this function we can check the hide-flag from database and send additional value by form.&lt;br /&gt;
Another script (moodle\mod\quiz\process_attempt.php) catches this form and checks different given properties. &lt;br /&gt;
The properties are:&lt;br /&gt;
&lt;br /&gt;
    // Get submitted parameters.&lt;br /&gt;
    $attemptid     = required_param(&#039;attempt&#039;,  PARAM_INT);&lt;br /&gt;
    $thispage      = optional_param(&#039;thispage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $nextpage      = optional_param(&#039;nextpage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $next          = optional_param(&#039;next&#039;,          false, PARAM_BOOL);&lt;br /&gt;
    $finishattempt = optional_param(&#039;finishattempt&#039;, false, PARAM_BOOL);&lt;br /&gt;
    $timeup        = optional_param(&#039;timeup&#039;,        0,      PARAM_BOOL); // True if form was submitted by timer.&lt;br /&gt;
    $scrollpos     = optional_param(&#039;scrollpos&#039;,    null ,     PARAM_RAW);&lt;br /&gt;
    // Here we can catch our hide-flag&lt;br /&gt;
&lt;br /&gt;
And then in the place:&lt;br /&gt;
&lt;br /&gt;
    if ($page == -1) {    $nexturl = $attemptobj-&amp;gt;summary_url(); }&lt;br /&gt;
&lt;br /&gt;
we can add checking hide-flag and if we need hide the summary page set the $finishattempt variable as true.&lt;br /&gt;
&lt;br /&gt;
If we need show the confirm window before redirecting to preview page we can use &lt;br /&gt;
&lt;br /&gt;
$button-&amp;gt;add_action(new confirm_action(get_string(&#039;confirmclose&#039;, &#039;quiz&#039;), null, get_string(&#039;submitallandfinish&#039;, &#039;quiz&#039;))); &lt;br /&gt;
&lt;br /&gt;
for the &amp;quot;next&amp;quot; button on the last attempt page.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48620</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48620"/>
		<updated>2015-09-27T12:39:02Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: /* Finishing quiz without summary page */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quiz ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quiz user sees a summary page asking to confirm quiz finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quiz without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quiz page. It could be &amp;quot;Submit and finish&amp;quot; button instead of &amp;quot;Next&amp;quot; on the last page of the quiz&lt;br /&gt;
&lt;br /&gt;
[[File:3n.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing this button user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add yes/no trigger to Layout menu of quiz.&lt;br /&gt;
&lt;br /&gt;
[[File:5.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quiz:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag in the database ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some idea how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure by adding a new column to mdl_quiz table&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quiz.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The last page of the quiz redirects us to the summary page. Now it should be checked if summery page should be shawn. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We can create this fork next way:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
next button sends a form with different properties of current and next page (look moodle\mod\quiz\renderer.php - attempt_form function). Inside this function we can check the hide-flag from database and send additional value by form.&lt;br /&gt;
Another script (moodle\mod\quiz\process_attempt.php) catches this form and checks different given properties. &lt;br /&gt;
The properties are:&lt;br /&gt;
&lt;br /&gt;
    // Get submitted parameters.&lt;br /&gt;
    $attemptid     = required_param(&#039;attempt&#039;,  PARAM_INT);&lt;br /&gt;
    $thispage      = optional_param(&#039;thispage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $nextpage      = optional_param(&#039;nextpage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $next          = optional_param(&#039;next&#039;,          false, PARAM_BOOL);&lt;br /&gt;
    $finishattempt = optional_param(&#039;finishattempt&#039;, false, PARAM_BOOL);&lt;br /&gt;
    $timeup        = optional_param(&#039;timeup&#039;,        0,      PARAM_BOOL); // True if form was submitted by timer.&lt;br /&gt;
    $scrollpos     = optional_param(&#039;scrollpos&#039;,    null ,     PARAM_RAW);&lt;br /&gt;
    // Here we can catch our hide-flag&lt;br /&gt;
&lt;br /&gt;
And then in the place:&lt;br /&gt;
&lt;br /&gt;
    if ($page == -1) {    $nexturl = $attemptobj-&amp;gt;summary_url(); }&lt;br /&gt;
&lt;br /&gt;
we can add checking hide-flag and if we need hide the summary page set the $finishattempt variable as true.&lt;br /&gt;
&lt;br /&gt;
If we need show the confirm window before redirecting to preview page we can use &lt;br /&gt;
&lt;br /&gt;
$button-&amp;gt;add_action(new confirm_action(get_string(&#039;confirmclose&#039;, &#039;quiz&#039;), null, get_string(&#039;submitallandfinish&#039;, &#039;quiz&#039;))); &lt;br /&gt;
&lt;br /&gt;
for the &amp;quot;next&amp;quot; button on the last attempt page.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48619</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48619"/>
		<updated>2015-09-27T12:38:44Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: /* Finishing quiz without summary page */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quiz ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quiz user sees a summary page asking to confirm quiz finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quiz without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quiz page. It could be &amp;quot;Submit and finish&amp;quot; button instead of &amp;quot;Next&amp;quot; on the last page of the quiz&lt;br /&gt;
&lt;br /&gt;
[[File:3.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing this button user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add yes/no trigger to Layout menu of quiz.&lt;br /&gt;
&lt;br /&gt;
[[File:5.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quiz:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag in the database ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some idea how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure by adding a new column to mdl_quiz table&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quiz.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The last page of the quiz redirects us to the summary page. Now it should be checked if summery page should be shawn. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We can create this fork next way:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
next button sends a form with different properties of current and next page (look moodle\mod\quiz\renderer.php - attempt_form function). Inside this function we can check the hide-flag from database and send additional value by form.&lt;br /&gt;
Another script (moodle\mod\quiz\process_attempt.php) catches this form and checks different given properties. &lt;br /&gt;
The properties are:&lt;br /&gt;
&lt;br /&gt;
    // Get submitted parameters.&lt;br /&gt;
    $attemptid     = required_param(&#039;attempt&#039;,  PARAM_INT);&lt;br /&gt;
    $thispage      = optional_param(&#039;thispage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $nextpage      = optional_param(&#039;nextpage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $next          = optional_param(&#039;next&#039;,          false, PARAM_BOOL);&lt;br /&gt;
    $finishattempt = optional_param(&#039;finishattempt&#039;, false, PARAM_BOOL);&lt;br /&gt;
    $timeup        = optional_param(&#039;timeup&#039;,        0,      PARAM_BOOL); // True if form was submitted by timer.&lt;br /&gt;
    $scrollpos     = optional_param(&#039;scrollpos&#039;,    null ,     PARAM_RAW);&lt;br /&gt;
    // Here we can catch our hide-flag&lt;br /&gt;
&lt;br /&gt;
And then in the place:&lt;br /&gt;
&lt;br /&gt;
    if ($page == -1) {    $nexturl = $attemptobj-&amp;gt;summary_url(); }&lt;br /&gt;
&lt;br /&gt;
we can add checking hide-flag and if we need hide the summary page set the $finishattempt variable as true.&lt;br /&gt;
&lt;br /&gt;
If we need show the confirm window before redirecting to preview page we can use &lt;br /&gt;
&lt;br /&gt;
$button-&amp;gt;add_action(new confirm_action(get_string(&#039;confirmclose&#039;, &#039;quiz&#039;), null, get_string(&#039;submitallandfinish&#039;, &#039;quiz&#039;))); &lt;br /&gt;
&lt;br /&gt;
for the &amp;quot;next&amp;quot; button on the last attempt page.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=File:3%D0%BD.PNG&amp;diff=48618</id>
		<title>File:3н.PNG</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=File:3%D0%BD.PNG&amp;diff=48618"/>
		<updated>2015-09-27T12:38:07Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48617</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48617"/>
		<updated>2015-09-27T12:37:13Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: /* Finishing quiz without summary page */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quiz ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quiz user sees a summary page asking to confirm quiz finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quiz without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quiz page. It could be &amp;quot;Submit and finish&amp;quot; button instead of &amp;quot;Next&amp;quot; on the last page of the quiz&lt;br /&gt;
&lt;br /&gt;
[[File:3н.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing this button user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add yes/no trigger to Layout menu of quiz.&lt;br /&gt;
&lt;br /&gt;
[[File:5.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quiz:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag in the database ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some idea how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure by adding a new column to mdl_quiz table&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quiz.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The last page of the quiz redirects us to the summary page. Now it should be checked if summery page should be shawn. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We can create this fork next way:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
next button sends a form with different properties of current and next page (look moodle\mod\quiz\renderer.php - attempt_form function). Inside this function we can check the hide-flag from database and send additional value by form.&lt;br /&gt;
Another script (moodle\mod\quiz\process_attempt.php) catches this form and checks different given properties. &lt;br /&gt;
The properties are:&lt;br /&gt;
&lt;br /&gt;
    // Get submitted parameters.&lt;br /&gt;
    $attemptid     = required_param(&#039;attempt&#039;,  PARAM_INT);&lt;br /&gt;
    $thispage      = optional_param(&#039;thispage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $nextpage      = optional_param(&#039;nextpage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $next          = optional_param(&#039;next&#039;,          false, PARAM_BOOL);&lt;br /&gt;
    $finishattempt = optional_param(&#039;finishattempt&#039;, false, PARAM_BOOL);&lt;br /&gt;
    $timeup        = optional_param(&#039;timeup&#039;,        0,      PARAM_BOOL); // True if form was submitted by timer.&lt;br /&gt;
    $scrollpos     = optional_param(&#039;scrollpos&#039;,    null ,     PARAM_RAW);&lt;br /&gt;
    // Here we can catch our hide-flag&lt;br /&gt;
&lt;br /&gt;
And then in the place:&lt;br /&gt;
&lt;br /&gt;
    if ($page == -1) {    $nexturl = $attemptobj-&amp;gt;summary_url(); }&lt;br /&gt;
&lt;br /&gt;
we can add checking hide-flag and if we need hide the summary page set the $finishattempt variable as true.&lt;br /&gt;
&lt;br /&gt;
If we need show the confirm window before redirecting to preview page we can use &lt;br /&gt;
&lt;br /&gt;
$button-&amp;gt;add_action(new confirm_action(get_string(&#039;confirmclose&#039;, &#039;quiz&#039;), null, get_string(&#039;submitallandfinish&#039;, &#039;quiz&#039;))); &lt;br /&gt;
&lt;br /&gt;
for the &amp;quot;next&amp;quot; button on the last attempt page.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=File:3.PNG&amp;diff=48616</id>
		<title>File:3.PNG</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=File:3.PNG&amp;diff=48616"/>
		<updated>2015-09-27T12:30:11Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: Dima kekc uploaded a new version of File:3.PNG&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48615</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48615"/>
		<updated>2015-09-27T12:28:42Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: /* Turning off the summary page */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quiz ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quiz user sees a summary page asking to confirm quiz finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quiz without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quiz page. It could be &amp;quot;Submit and finish&amp;quot; button instead of &amp;quot;Next&amp;quot; on the last page of the quiz&lt;br /&gt;
&lt;br /&gt;
[[File:3.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing this button user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add yes/no trigger to Layout menu of quiz.&lt;br /&gt;
&lt;br /&gt;
[[File:5.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quiz:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag in the database ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some idea how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure by adding a new column to mdl_quiz table&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quiz.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The last page of the quiz redirects us to the summary page. Now it should be checked if summery page should be shawn. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We can create this fork next way:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
next button sends a form with different properties of current and next page (look moodle\mod\quiz\renderer.php - attempt_form function). Inside this function we can check the hide-flag from database and send additional value by form.&lt;br /&gt;
Another script (moodle\mod\quiz\process_attempt.php) catches this form and checks different given properties. &lt;br /&gt;
The properties are:&lt;br /&gt;
&lt;br /&gt;
    // Get submitted parameters.&lt;br /&gt;
    $attemptid     = required_param(&#039;attempt&#039;,  PARAM_INT);&lt;br /&gt;
    $thispage      = optional_param(&#039;thispage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $nextpage      = optional_param(&#039;nextpage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $next          = optional_param(&#039;next&#039;,          false, PARAM_BOOL);&lt;br /&gt;
    $finishattempt = optional_param(&#039;finishattempt&#039;, false, PARAM_BOOL);&lt;br /&gt;
    $timeup        = optional_param(&#039;timeup&#039;,        0,      PARAM_BOOL); // True if form was submitted by timer.&lt;br /&gt;
    $scrollpos     = optional_param(&#039;scrollpos&#039;,    null ,     PARAM_RAW);&lt;br /&gt;
    // Here we can catch our hide-flag&lt;br /&gt;
&lt;br /&gt;
And then in the place:&lt;br /&gt;
&lt;br /&gt;
    if ($page == -1) {    $nexturl = $attemptobj-&amp;gt;summary_url(); }&lt;br /&gt;
&lt;br /&gt;
we can add checking hide-flag and if we need hide the summary page set the $finishattempt variable as true.&lt;br /&gt;
&lt;br /&gt;
If we need show the confirm window before redirecting to preview page we can use &lt;br /&gt;
&lt;br /&gt;
$button-&amp;gt;add_action(new confirm_action(get_string(&#039;confirmclose&#039;, &#039;quiz&#039;), null, get_string(&#039;submitallandfinish&#039;, &#039;quiz&#039;))); &lt;br /&gt;
&lt;br /&gt;
for the &amp;quot;next&amp;quot; button on the last attempt page.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48614</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48614"/>
		<updated>2015-09-27T12:28:28Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quiz ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quiz user sees a summary page asking to confirm quiz finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quiz without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quiz page. It could be &amp;quot;Submit and finish&amp;quot; button instead of &amp;quot;Next&amp;quot; on the last page of the quiz&lt;br /&gt;
&lt;br /&gt;
[[File:3.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing this button user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add yes/no trigger to Layout menu of quiz.&lt;br /&gt;
&lt;br /&gt;
[[File:.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quiz:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag in the database ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some idea how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure by adding a new column to mdl_quiz table&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quiz.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The last page of the quiz redirects us to the summary page. Now it should be checked if summery page should be shawn. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We can create this fork next way:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
next button sends a form with different properties of current and next page (look moodle\mod\quiz\renderer.php - attempt_form function). Inside this function we can check the hide-flag from database and send additional value by form.&lt;br /&gt;
Another script (moodle\mod\quiz\process_attempt.php) catches this form and checks different given properties. &lt;br /&gt;
The properties are:&lt;br /&gt;
&lt;br /&gt;
    // Get submitted parameters.&lt;br /&gt;
    $attemptid     = required_param(&#039;attempt&#039;,  PARAM_INT);&lt;br /&gt;
    $thispage      = optional_param(&#039;thispage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $nextpage      = optional_param(&#039;nextpage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $next          = optional_param(&#039;next&#039;,          false, PARAM_BOOL);&lt;br /&gt;
    $finishattempt = optional_param(&#039;finishattempt&#039;, false, PARAM_BOOL);&lt;br /&gt;
    $timeup        = optional_param(&#039;timeup&#039;,        0,      PARAM_BOOL); // True if form was submitted by timer.&lt;br /&gt;
    $scrollpos     = optional_param(&#039;scrollpos&#039;,    null ,     PARAM_RAW);&lt;br /&gt;
    // Here we can catch our hide-flag&lt;br /&gt;
&lt;br /&gt;
And then in the place:&lt;br /&gt;
&lt;br /&gt;
    if ($page == -1) {    $nexturl = $attemptobj-&amp;gt;summary_url(); }&lt;br /&gt;
&lt;br /&gt;
we can add checking hide-flag and if we need hide the summary page set the $finishattempt variable as true.&lt;br /&gt;
&lt;br /&gt;
If we need show the confirm window before redirecting to preview page we can use &lt;br /&gt;
&lt;br /&gt;
$button-&amp;gt;add_action(new confirm_action(get_string(&#039;confirmclose&#039;, &#039;quiz&#039;), null, get_string(&#039;submitallandfinish&#039;, &#039;quiz&#039;))); &lt;br /&gt;
&lt;br /&gt;
for the &amp;quot;next&amp;quot; button on the last attempt page.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48613</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48613"/>
		<updated>2015-09-27T11:23:08Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: /* Storing the flag in the database */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quiz ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quiz user sees a summary page asking to confirm quiz finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quiz without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quiz page. It could be &amp;quot;Submit and finish&amp;quot; button instead of &amp;quot;Next&amp;quot; on the last page of the quiz&lt;br /&gt;
&lt;br /&gt;
[[File:3.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing this button user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add yes/no trigger to Layout menu of quiz.&lt;br /&gt;
&lt;br /&gt;
[[File:5.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quiz:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag in the database ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some idea how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure by adding a new column to mdl_quiz table&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quiz.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The last page of the quiz redirects us to the summary page. Now it should be checked if summery page should be shawn. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We can create this fork next way:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
next button sends a form with different properties of current and next page (look moodle\mod\quiz\renderer.php - attempt_form function). Inside this function we can check the hide-flag from database and send additional value by form.&lt;br /&gt;
Another script (moodle\mod\quiz\process_attempt.php) catches this form and checks different given properties. &lt;br /&gt;
The properties are:&lt;br /&gt;
&lt;br /&gt;
    // Get submitted parameters.&lt;br /&gt;
    $attemptid     = required_param(&#039;attempt&#039;,  PARAM_INT);&lt;br /&gt;
    $thispage      = optional_param(&#039;thispage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $nextpage      = optional_param(&#039;nextpage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $next          = optional_param(&#039;next&#039;,          false, PARAM_BOOL);&lt;br /&gt;
    $finishattempt = optional_param(&#039;finishattempt&#039;, false, PARAM_BOOL);&lt;br /&gt;
    $timeup        = optional_param(&#039;timeup&#039;,        0,      PARAM_BOOL); // True if form was submitted by timer.&lt;br /&gt;
    $scrollpos     = optional_param(&#039;scrollpos&#039;,    null ,     PARAM_RAW);&lt;br /&gt;
    // Here we can catch our hide-flag&lt;br /&gt;
&lt;br /&gt;
And then in the place:&lt;br /&gt;
&lt;br /&gt;
    if ($page == -1) {    $nexturl = $attemptobj-&amp;gt;summary_url(); }&lt;br /&gt;
&lt;br /&gt;
we can add checking hide-flag and if we need hide the summary page set the $finishattempt variable as true.&lt;br /&gt;
&lt;br /&gt;
If we need show the confirm window before redirecting to preview page we can use &lt;br /&gt;
&lt;br /&gt;
$button-&amp;gt;add_action(new confirm_action(get_string(&#039;confirmclose&#039;, &#039;quiz&#039;), null, get_string(&#039;submitallandfinish&#039;, &#039;quiz&#039;))); &lt;br /&gt;
&lt;br /&gt;
for the &amp;quot;next&amp;quot; button on the last attempt page.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48612</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48612"/>
		<updated>2015-09-27T11:21:50Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: /* Finishing quiz without summary page */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quiz ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quiz user sees a summary page asking to confirm quiz finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quiz without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quiz page. It could be &amp;quot;Submit and finish&amp;quot; button instead of &amp;quot;Next&amp;quot; on the last page of the quiz&lt;br /&gt;
&lt;br /&gt;
[[File:3.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing this button user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add yes/no trigger to Layout menu of quiz.&lt;br /&gt;
&lt;br /&gt;
[[File:5.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quiz:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag in the database ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some ideas how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure by adding a new column to mdl_quiz table&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quiz.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Add row to mdl_quiz_slots table&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If we don`t want to add a new column we may add a new row to a table quiz_slots. This table contains the information about quiz pages configuration. May be it`s a reason to add a new additional slot for summary page. Some columns fill by negative numbers to mark it as not a question. This way allow not to change structure but confuses different objects in one table. It can cause more additional conditions in php code to filter what is question and what is not and which page to show in quiz and which not.&lt;br /&gt;
&lt;br /&gt;
[[File:8.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit quiz name with a spetial invisible symbol&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This way is a temporary solution and it doesn`t need any addings to database. If we need to add flag we can add to a quiz name or intro any invisible symbol and then check it as a flag.&lt;br /&gt;
&lt;br /&gt;
[[File:9.png]]&lt;br /&gt;
&lt;br /&gt;
The problem that user can delete it by name/intro edition.&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The last page of the quiz redirects us to the summary page. Now it should be checked if summery page should be shawn. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We can create this fork next way:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
next button sends a form with different properties of current and next page (look moodle\mod\quiz\renderer.php - attempt_form function). Inside this function we can check the hide-flag from database and send additional value by form.&lt;br /&gt;
Another script (moodle\mod\quiz\process_attempt.php) catches this form and checks different given properties. &lt;br /&gt;
The properties are:&lt;br /&gt;
&lt;br /&gt;
    // Get submitted parameters.&lt;br /&gt;
    $attemptid     = required_param(&#039;attempt&#039;,  PARAM_INT);&lt;br /&gt;
    $thispage      = optional_param(&#039;thispage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $nextpage      = optional_param(&#039;nextpage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $next          = optional_param(&#039;next&#039;,          false, PARAM_BOOL);&lt;br /&gt;
    $finishattempt = optional_param(&#039;finishattempt&#039;, false, PARAM_BOOL);&lt;br /&gt;
    $timeup        = optional_param(&#039;timeup&#039;,        0,      PARAM_BOOL); // True if form was submitted by timer.&lt;br /&gt;
    $scrollpos     = optional_param(&#039;scrollpos&#039;,    null ,     PARAM_RAW);&lt;br /&gt;
    // Here we can catch our hide-flag&lt;br /&gt;
&lt;br /&gt;
And then in the place:&lt;br /&gt;
&lt;br /&gt;
    if ($page == -1) {    $nexturl = $attemptobj-&amp;gt;summary_url(); }&lt;br /&gt;
&lt;br /&gt;
we can add checking hide-flag and if we need hide the summary page set the $finishattempt variable as true.&lt;br /&gt;
&lt;br /&gt;
If we need show the confirm window before redirecting to preview page we can use &lt;br /&gt;
&lt;br /&gt;
$button-&amp;gt;add_action(new confirm_action(get_string(&#039;confirmclose&#039;, &#039;quiz&#039;), null, get_string(&#039;submitallandfinish&#039;, &#039;quiz&#039;))); &lt;br /&gt;
&lt;br /&gt;
for the &amp;quot;next&amp;quot; button on the last attempt page.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=File:4.jpg&amp;diff=48611</id>
		<title>File:4.jpg</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=File:4.jpg&amp;diff=48611"/>
		<updated>2015-09-27T11:17:04Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: Dima kekc uploaded a new version of File:4.jpg&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=File:3.PNG&amp;diff=48610</id>
		<title>File:3.PNG</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=File:3.PNG&amp;diff=48610"/>
		<updated>2015-09-27T11:15:30Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: Dima kekc uploaded a new version of File:3.PNG&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=File:3.PNG&amp;diff=48609</id>
		<title>File:3.PNG</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=File:3.PNG&amp;diff=48609"/>
		<updated>2015-09-27T11:11:11Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: Dima kekc uploaded a new version of File:3.PNG&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48602</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48602"/>
		<updated>2015-09-24T08:55:26Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: /* Storing the flag in the database */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quiz ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quiz user sees a summary page asking to confirm quiz finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quiz without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quiz page.&lt;br /&gt;
&lt;br /&gt;
[[File:3.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing next user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add yes/no trigger to Layout menu of quiz.&lt;br /&gt;
&lt;br /&gt;
[[File:5.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quiz:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag in the database ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some ideas how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure by adding a new column to mdl_quiz table&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quiz.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Add row to mdl_quiz_slots table&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If we don`t want to add a new column we may add a new row to a table quiz_slots. This table contains the information about quiz pages configuration. May be it`s a reason to add a new additional slot for summary page. Some columns fill by negative numbers to mark it as not a question. This way allow not to change structure but confuses different objects in one table. It can cause more additional conditions in php code to filter what is question and what is not and which page to show in quiz and which not.&lt;br /&gt;
&lt;br /&gt;
[[File:8.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit quiz name with a spetial invisible symbol&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This way is a temporary solution and it doesn`t need any addings to database. If we need to add flag we can add to a quiz name or intro any invisible symbol and then check it as a flag.&lt;br /&gt;
&lt;br /&gt;
[[File:9.png]]&lt;br /&gt;
&lt;br /&gt;
The problem that user can delete it by name/intro edition.&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The last page of the quiz redirects us to the summary page. Now it should be checked if summery page should be shawn. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We can create this fork next way:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
next button sends a form with different properties of current and next page (look moodle\mod\quiz\renderer.php - attempt_form function). Inside this function we can check the hide-flag from database and send additional value by form.&lt;br /&gt;
Another script (moodle\mod\quiz\process_attempt.php) catches this form and checks different given properties. &lt;br /&gt;
The properties are:&lt;br /&gt;
&lt;br /&gt;
    // Get submitted parameters.&lt;br /&gt;
    $attemptid     = required_param(&#039;attempt&#039;,  PARAM_INT);&lt;br /&gt;
    $thispage      = optional_param(&#039;thispage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $nextpage      = optional_param(&#039;nextpage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $next          = optional_param(&#039;next&#039;,          false, PARAM_BOOL);&lt;br /&gt;
    $finishattempt = optional_param(&#039;finishattempt&#039;, false, PARAM_BOOL);&lt;br /&gt;
    $timeup        = optional_param(&#039;timeup&#039;,        0,      PARAM_BOOL); // True if form was submitted by timer.&lt;br /&gt;
    $scrollpos     = optional_param(&#039;scrollpos&#039;,    null ,     PARAM_RAW);&lt;br /&gt;
    // Here we can catch our hide-flag&lt;br /&gt;
&lt;br /&gt;
And then in the place:&lt;br /&gt;
&lt;br /&gt;
    if ($page == -1) {    $nexturl = $attemptobj-&amp;gt;summary_url(); }&lt;br /&gt;
&lt;br /&gt;
we can add checking hide-flag and if we need hide the summary page set the $finishattempt variable as true.&lt;br /&gt;
&lt;br /&gt;
If we need show the confirm window before redirecting to preview page we can use &lt;br /&gt;
&lt;br /&gt;
$button-&amp;gt;add_action(new confirm_action(get_string(&#039;confirmclose&#039;, &#039;quiz&#039;), null, get_string(&#039;submitallandfinish&#039;, &#039;quiz&#039;))); &lt;br /&gt;
&lt;br /&gt;
for the &amp;quot;next&amp;quot; button on the last attempt page.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48601</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48601"/>
		<updated>2015-09-24T08:55:00Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: /* Storing the flag in the database */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quiz ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quiz user sees a summary page asking to confirm quiz finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quiz without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quiz page.&lt;br /&gt;
&lt;br /&gt;
[[File:3.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing next user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add yes/no trigger to Layout menu of quiz.&lt;br /&gt;
&lt;br /&gt;
[[File:5.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quiz:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag in the database ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some ideas how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure by adding a new column to mdl_quiz table&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quiz.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Add row to mdl_quiz_slots table&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If we don`t want to add a new column we may add a new row to a table quiz_slots. This table contains the information about quiz pages configuration. May be it`s a reason to add a new additional slot for summary page. Some columns fill by negative numbers to mark it as not a question. This way allow not to change structure but confuses different objects in one table. It can cause more additional conditions in php code to filter what is question and what is not and which page to show in quiz and which not.&lt;br /&gt;
&lt;br /&gt;
[[File:8.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Edit quiz name with a spetial invisible symbol&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This way is a temporary solution and it doesn`t need any addings to database. If we need to add flag we can add to a quiz name or intro any invisible symbol and then check it as a flag.&lt;br /&gt;
&lt;br /&gt;
[[File:9.png]]&lt;br /&gt;
&lt;br /&gt;
The problem that user can delete it by name/intro edition.&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The last page of the quiz redirects us to the summary page. Now it should be checked if summery page should be shawn. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We can create this fork next way:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
next button sends a form with different properties of current and next page (look moodle\mod\quiz\renderer.php - attempt_form function). Inside this function we can check the hide-flag from database and send additional value by form.&lt;br /&gt;
Another script (moodle\mod\quiz\process_attempt.php) catches this form and checks different given properties. &lt;br /&gt;
The properties are:&lt;br /&gt;
&lt;br /&gt;
    // Get submitted parameters.&lt;br /&gt;
    $attemptid     = required_param(&#039;attempt&#039;,  PARAM_INT);&lt;br /&gt;
    $thispage      = optional_param(&#039;thispage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $nextpage      = optional_param(&#039;nextpage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $next          = optional_param(&#039;next&#039;,          false, PARAM_BOOL);&lt;br /&gt;
    $finishattempt = optional_param(&#039;finishattempt&#039;, false, PARAM_BOOL);&lt;br /&gt;
    $timeup        = optional_param(&#039;timeup&#039;,        0,      PARAM_BOOL); // True if form was submitted by timer.&lt;br /&gt;
    $scrollpos     = optional_param(&#039;scrollpos&#039;,    null ,     PARAM_RAW);&lt;br /&gt;
    // Here we can catch our hide-flag&lt;br /&gt;
&lt;br /&gt;
And then in the place:&lt;br /&gt;
&lt;br /&gt;
    if ($page == -1) {    $nexturl = $attemptobj-&amp;gt;summary_url(); }&lt;br /&gt;
&lt;br /&gt;
we can add checking hide-flag and if we need hide the summary page set the $finishattempt variable as true.&lt;br /&gt;
&lt;br /&gt;
If we need show the confirm window before redirecting to preview page we can use &lt;br /&gt;
&lt;br /&gt;
$button-&amp;gt;add_action(new confirm_action(get_string(&#039;confirmclose&#039;, &#039;quiz&#039;), null, get_string(&#039;submitallandfinish&#039;, &#039;quiz&#039;))); &lt;br /&gt;
&lt;br /&gt;
for the &amp;quot;next&amp;quot; button on the last attempt page.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48600</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48600"/>
		<updated>2015-09-24T08:54:32Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: /* Storing the flag in the database */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quiz ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quiz user sees a summary page asking to confirm quiz finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quiz without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quiz page.&lt;br /&gt;
&lt;br /&gt;
[[File:3.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing next user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add yes/no trigger to Layout menu of quiz.&lt;br /&gt;
&lt;br /&gt;
[[File:5.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quiz:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag in the database ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some ideas how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure by adding a new column to mdl_quiz table&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quiz.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Add row to mdl_quiz_slots table&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If we don`t want to add a new column we may add a new row to a table quiz_slots. This table contains the information about quiz pages configuration. May be it`s a reason to add a new additional slot for summary page. Some columns fill by negative numbers to mark it as not a question. This way allow not to change structure but confuses different objects in one table. It can cause more additional conditions in php code to filter what is question and what is not and which page to show in quiz and which not.&lt;br /&gt;
&lt;br /&gt;
[[File:8.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit quiz name with a spetial invisible symbol&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This way is a temporary solution and it doesn`t need any addings to database. If we need to add flag we can add to a quiz name or intro any invisible symbol and then check it as a flag.&lt;br /&gt;
&lt;br /&gt;
[[File:9.png]]&lt;br /&gt;
&lt;br /&gt;
The problem that user can delete it by name/intro edition.&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The last page of the quiz redirects us to the summary page. Now it should be checked if summery page should be shawn. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We can create this fork next way:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
next button sends a form with different properties of current and next page (look moodle\mod\quiz\renderer.php - attempt_form function). Inside this function we can check the hide-flag from database and send additional value by form.&lt;br /&gt;
Another script (moodle\mod\quiz\process_attempt.php) catches this form and checks different given properties. &lt;br /&gt;
The properties are:&lt;br /&gt;
&lt;br /&gt;
    // Get submitted parameters.&lt;br /&gt;
    $attemptid     = required_param(&#039;attempt&#039;,  PARAM_INT);&lt;br /&gt;
    $thispage      = optional_param(&#039;thispage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $nextpage      = optional_param(&#039;nextpage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $next          = optional_param(&#039;next&#039;,          false, PARAM_BOOL);&lt;br /&gt;
    $finishattempt = optional_param(&#039;finishattempt&#039;, false, PARAM_BOOL);&lt;br /&gt;
    $timeup        = optional_param(&#039;timeup&#039;,        0,      PARAM_BOOL); // True if form was submitted by timer.&lt;br /&gt;
    $scrollpos     = optional_param(&#039;scrollpos&#039;,    null ,     PARAM_RAW);&lt;br /&gt;
    // Here we can catch our hide-flag&lt;br /&gt;
&lt;br /&gt;
And then in the place:&lt;br /&gt;
&lt;br /&gt;
    if ($page == -1) {    $nexturl = $attemptobj-&amp;gt;summary_url(); }&lt;br /&gt;
&lt;br /&gt;
we can add checking hide-flag and if we need hide the summary page set the $finishattempt variable as true.&lt;br /&gt;
&lt;br /&gt;
If we need show the confirm window before redirecting to preview page we can use &lt;br /&gt;
&lt;br /&gt;
$button-&amp;gt;add_action(new confirm_action(get_string(&#039;confirmclose&#039;, &#039;quiz&#039;), null, get_string(&#039;submitallandfinish&#039;, &#039;quiz&#039;))); &lt;br /&gt;
&lt;br /&gt;
for the &amp;quot;next&amp;quot; button on the last attempt page.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48599</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48599"/>
		<updated>2015-09-24T08:53:21Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: /* Storing the flag */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quiz ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quiz user sees a summary page asking to confirm quiz finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quiz without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quiz page.&lt;br /&gt;
&lt;br /&gt;
[[File:3.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing next user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add yes/no trigger to Layout menu of quiz.&lt;br /&gt;
&lt;br /&gt;
[[File:5.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quiz:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag in the database ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some ideas how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quiz.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Add row&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If we don`t want to add a new column we may add a new row to a table quiz_slots. This table contains the information about quiz pages configuration. May be it`s a reason to add a new additional slot for summary page. Some columns fill by negative numbers to mark it as not a question. This way allow not to change structure but confuses different objects in one table. It can cause more additional conditions in php code to filter what is question and what is not and which page to show in quiz and which not.&lt;br /&gt;
&lt;br /&gt;
[[File:8.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit quiz name&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This way is a temporary solution and it doesn`t need any addings to database. If we need to add flag we can add to a quiz name or intro any invisible symbol and then check it as a flag.&lt;br /&gt;
&lt;br /&gt;
[[File:9.png]]&lt;br /&gt;
&lt;br /&gt;
The problem that user can delete it by name/intro edition.&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The last page of the quiz redirects us to the summary page. Now it should be checked if summery page should be shawn. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We can create this fork next way:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
next button sends a form with different properties of current and next page (look moodle\mod\quiz\renderer.php - attempt_form function). Inside this function we can check the hide-flag from database and send additional value by form.&lt;br /&gt;
Another script (moodle\mod\quiz\process_attempt.php) catches this form and checks different given properties. &lt;br /&gt;
The properties are:&lt;br /&gt;
&lt;br /&gt;
    // Get submitted parameters.&lt;br /&gt;
    $attemptid     = required_param(&#039;attempt&#039;,  PARAM_INT);&lt;br /&gt;
    $thispage      = optional_param(&#039;thispage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $nextpage      = optional_param(&#039;nextpage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $next          = optional_param(&#039;next&#039;,          false, PARAM_BOOL);&lt;br /&gt;
    $finishattempt = optional_param(&#039;finishattempt&#039;, false, PARAM_BOOL);&lt;br /&gt;
    $timeup        = optional_param(&#039;timeup&#039;,        0,      PARAM_BOOL); // True if form was submitted by timer.&lt;br /&gt;
    $scrollpos     = optional_param(&#039;scrollpos&#039;,    null ,     PARAM_RAW);&lt;br /&gt;
    // Here we can catch our hide-flag&lt;br /&gt;
&lt;br /&gt;
And then in the place:&lt;br /&gt;
&lt;br /&gt;
    if ($page == -1) {    $nexturl = $attemptobj-&amp;gt;summary_url(); }&lt;br /&gt;
&lt;br /&gt;
we can add checking hide-flag and if we need hide the summary page set the $finishattempt variable as true.&lt;br /&gt;
&lt;br /&gt;
If we need show the confirm window before redirecting to preview page we can use &lt;br /&gt;
&lt;br /&gt;
$button-&amp;gt;add_action(new confirm_action(get_string(&#039;confirmclose&#039;, &#039;quiz&#039;), null, get_string(&#039;submitallandfinish&#039;, &#039;quiz&#039;))); &lt;br /&gt;
&lt;br /&gt;
for the &amp;quot;next&amp;quot; button on the last attempt page.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48598</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48598"/>
		<updated>2015-09-24T08:52:27Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: /* Implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quiz ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quiz user sees a summary page asking to confirm quiz finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quiz without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quiz page.&lt;br /&gt;
&lt;br /&gt;
[[File:3.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing next user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add yes/no trigger to Layout menu of quiz.&lt;br /&gt;
&lt;br /&gt;
[[File:5.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quiz:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some ideas how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quiz.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Add row&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If we don`t want to add a new column we may add a new row to a table quiz_slots. This table contains the information about quiz pages configuration. May be it`s a reason to add a new additional slot for summary page. Some columns fill by negative numbers to mark it as not a question. This way allow not to change structure but confuses different objects in one table. It can cause more additional conditions in php code to filter what is question and what is not and which page to show in quiz and which not.&lt;br /&gt;
&lt;br /&gt;
[[File:8.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit quiz name&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This way is a temporary solution and it doesn`t need any addings to database. If we need to add flag we can add to a quiz name or intro any invisible symbol and then check it as a flag.&lt;br /&gt;
&lt;br /&gt;
[[File:9.png]]&lt;br /&gt;
&lt;br /&gt;
The problem that user can delete it by name/intro edition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The last page of the quiz redirects us to the summary page. Now it should be checked if summery page should be shawn. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We can create this fork next way:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
next button sends a form with different properties of current and next page (look moodle\mod\quiz\renderer.php - attempt_form function). Inside this function we can check the hide-flag from database and send additional value by form.&lt;br /&gt;
Another script (moodle\mod\quiz\process_attempt.php) catches this form and checks different given properties. &lt;br /&gt;
The properties are:&lt;br /&gt;
&lt;br /&gt;
    // Get submitted parameters.&lt;br /&gt;
    $attemptid     = required_param(&#039;attempt&#039;,  PARAM_INT);&lt;br /&gt;
    $thispage      = optional_param(&#039;thispage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $nextpage      = optional_param(&#039;nextpage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $next          = optional_param(&#039;next&#039;,          false, PARAM_BOOL);&lt;br /&gt;
    $finishattempt = optional_param(&#039;finishattempt&#039;, false, PARAM_BOOL);&lt;br /&gt;
    $timeup        = optional_param(&#039;timeup&#039;,        0,      PARAM_BOOL); // True if form was submitted by timer.&lt;br /&gt;
    $scrollpos     = optional_param(&#039;scrollpos&#039;,    null ,     PARAM_RAW);&lt;br /&gt;
    // Here we can catch our hide-flag&lt;br /&gt;
&lt;br /&gt;
And then in the place:&lt;br /&gt;
&lt;br /&gt;
    if ($page == -1) {    $nexturl = $attemptobj-&amp;gt;summary_url(); }&lt;br /&gt;
&lt;br /&gt;
we can add checking hide-flag and if we need hide the summary page set the $finishattempt variable as true.&lt;br /&gt;
&lt;br /&gt;
If we need show the confirm window before redirecting to preview page we can use &lt;br /&gt;
&lt;br /&gt;
$button-&amp;gt;add_action(new confirm_action(get_string(&#039;confirmclose&#039;, &#039;quiz&#039;), null, get_string(&#039;submitallandfinish&#039;, &#039;quiz&#039;))); &lt;br /&gt;
&lt;br /&gt;
for the &amp;quot;next&amp;quot; button on the last attempt page.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48597</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48597"/>
		<updated>2015-09-24T08:51:42Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: /* Implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quiz ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quiz user sees a summary page asking to confirm quiz finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quiz without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quiz page.&lt;br /&gt;
&lt;br /&gt;
[[File:3.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing next user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add yes/no trigger to Layout menu of quiz.&lt;br /&gt;
&lt;br /&gt;
[[File:5.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quiz:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some ideas how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quiz.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Add row&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If we don`t want to add a new column we may add a new row to a table quiz_slots. This table contains the information about quiz pages configuration. May be it`s a reason to add a new additional slot for summary page. Some columns fill by negative numbers to mark it as not a question. This way allow not to change structure but confuses different objects in one table. It can cause more additional conditions in php code to filter what is question and what is not and which page to show in quiz and which not.&lt;br /&gt;
&lt;br /&gt;
[[File:8.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit quiz name&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This way is a temporary solution and it doesn`t need any addings to database. If we need to add flag we can add to a quiz name or intro any invisible symbol and then check it as a flag.&lt;br /&gt;
&lt;br /&gt;
[[File:9.png]]&lt;br /&gt;
&lt;br /&gt;
The problem that user can delete it by name/intro edition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The last page of the quiz redirects us to the summary page. Now it should be checked if summery page should be shawn. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We can create this fork next way:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
next button sends a form with different properties of current and next page (look moodle\mod\quiz\renderer.php - attempt_form function). Inside this function we can check the hide-flag from database and send additional value by form.&lt;br /&gt;
Another script (moodle\mod\quiz\process_attempt.php) catches this form and checks different given properties. &lt;br /&gt;
The properties are:&lt;br /&gt;
&lt;br /&gt;
    // Get submitted parameters.&lt;br /&gt;
    $attemptid     = required_param(&#039;attempt&#039;,  PARAM_INT);&lt;br /&gt;
    $thispage      = optional_param(&#039;thispage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $nextpage      = optional_param(&#039;nextpage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $next          = optional_param(&#039;next&#039;,          false, PARAM_BOOL);&lt;br /&gt;
    $finishattempt = optional_param(&#039;finishattempt&#039;, false, PARAM_BOOL);&lt;br /&gt;
    $timeup        = optional_param(&#039;timeup&#039;,        0,      PARAM_BOOL); // True if form was submitted by timer.&lt;br /&gt;
    $scrollpos     = optional_param(&#039;scrollpos&#039;,     &#039;&#039;,     PARAM_RAW);&lt;br /&gt;
    // Here we can catch our hide-flag&lt;br /&gt;
&lt;br /&gt;
And then in the place:&lt;br /&gt;
&lt;br /&gt;
    if ($page == -1) {    $nexturl = $attemptobj-&amp;gt;summary_url(); }&lt;br /&gt;
&lt;br /&gt;
we can add checking hide-flag and if we need hide the summary page set the $finishattempt variable as true.&lt;br /&gt;
&lt;br /&gt;
If we need show the confirm window before redirecting to preview page we can use &lt;br /&gt;
&lt;br /&gt;
$button-&amp;gt;add_action(new confirm_action(get_string(&#039;confirmclose&#039;, &#039;quiz&#039;), null, get_string(&#039;submitallandfinish&#039;, &#039;quiz&#039;))); &lt;br /&gt;
&lt;br /&gt;
for the &amp;quot;next&amp;quot; button on the last attempt page.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48596</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48596"/>
		<updated>2015-09-24T08:51:30Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: /* Implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quiz ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quiz user sees a summary page asking to confirm quiz finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quiz without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quiz page.&lt;br /&gt;
&lt;br /&gt;
[[File:3.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing next user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add yes/no trigger to Layout menu of quiz.&lt;br /&gt;
&lt;br /&gt;
[[File:5.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quiz:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some ideas how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quiz.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Add row&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If we don`t want to add a new column we may add a new row to a table quiz_slots. This table contains the information about quiz pages configuration. May be it`s a reason to add a new additional slot for summary page. Some columns fill by negative numbers to mark it as not a question. This way allow not to change structure but confuses different objects in one table. It can cause more additional conditions in php code to filter what is question and what is not and which page to show in quiz and which not.&lt;br /&gt;
&lt;br /&gt;
[[File:8.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit quiz name&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This way is a temporary solution and it doesn`t need any addings to database. If we need to add flag we can add to a quiz name or intro any invisible symbol and then check it as a flag.&lt;br /&gt;
&lt;br /&gt;
[[File:9.png]]&lt;br /&gt;
&lt;br /&gt;
The problem that user can delete it by name/intro edition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The last page of the quiz redirects us to the summary page. Now it should be checked if summery page should be shawn. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We can create this fork next way:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
next button sends a form with different properties of current and next page (look moodle\mod\quiz\renderer.php - attempt_form function). Inside this function we can check the hide-flag from database and send additional value by form.&lt;br /&gt;
Another script (moodle\mod\quiz\process_attempt.php) catches this form and checks different given properties. &lt;br /&gt;
The properties are:&lt;br /&gt;
&lt;br /&gt;
    // Get submitted parameters.&lt;br /&gt;
    $attemptid     = required_param(&#039;attempt&#039;,  PARAM_INT);&lt;br /&gt;
    $thispage      = optional_param(&#039;thispage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $nextpage      = optional_param(&#039;nextpage&#039;, 0, PARAM_INT);&lt;br /&gt;
    $next          = optional_param(&#039;next&#039;,          false, PARAM_BOOL);&lt;br /&gt;
    $finishattempt = optional_param(&#039;finishattempt&#039;, false, PARAM_BOOL);&lt;br /&gt;
    $timeup        = optional_param(&#039;timeup&#039;,        0,      PARAM_BOOL); // True if form was submitted by timer.&lt;br /&gt;
    $scrollpos     = optional_param(&#039;scrollpos&#039;,     &#039;&#039;,     PARAM_RAW);&lt;br /&gt;
    // Here we can catch our hide-flag&lt;br /&gt;
&lt;br /&gt;
And then in the place:&lt;br /&gt;
&lt;br /&gt;
if ($page == -1) {    $nexturl = $attemptobj-&amp;gt;summary_url(); }&lt;br /&gt;
&lt;br /&gt;
we can add checking hide-flag and if we need hide the summary page set the $finishattempt variable as true.&lt;br /&gt;
&lt;br /&gt;
If we need show the confirm window before redirecting to preview page we can use &lt;br /&gt;
&lt;br /&gt;
$button-&amp;gt;add_action(new confirm_action(get_string(&#039;confirmclose&#039;, &#039;quiz&#039;), null, get_string(&#039;submitallandfinish&#039;, &#039;quiz&#039;))); &lt;br /&gt;
&lt;br /&gt;
for the &amp;quot;next&amp;quot; button on the last attempt page.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48595</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48595"/>
		<updated>2015-09-24T08:50:09Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: /* Implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quiz ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quiz user sees a summary page asking to confirm quiz finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quiz without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quiz page.&lt;br /&gt;
&lt;br /&gt;
[[File:3.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing next user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add yes/no trigger to Layout menu of quiz.&lt;br /&gt;
&lt;br /&gt;
[[File:5.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quiz:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some ideas how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quiz.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Add row&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If we don`t want to add a new column we may add a new row to a table quiz_slots. This table contains the information about quiz pages configuration. May be it`s a reason to add a new additional slot for summary page. Some columns fill by negative numbers to mark it as not a question. This way allow not to change structure but confuses different objects in one table. It can cause more additional conditions in php code to filter what is question and what is not and which page to show in quiz and which not.&lt;br /&gt;
&lt;br /&gt;
[[File:8.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit quiz name&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This way is a temporary solution and it doesn`t need any addings to database. If we need to add flag we can add to a quiz name or intro any invisible symbol and then check it as a flag.&lt;br /&gt;
&lt;br /&gt;
[[File:9.png]]&lt;br /&gt;
&lt;br /&gt;
The problem that user can delete it by name/intro edition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The last page of the quiz redirects us to the summary page. Now it should be checked if summery page should be shawn. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We can create this fork next way:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
next button sends a form with different properties of current and next page (look moodle\mod\quiz\renderer.php - attempt_form function). Inside this function we can check the hide-flag from database and send additional value by form.&lt;br /&gt;
Another script (moodle\mod\quiz\process_attempt.php) catches this form and checks different given properties. &lt;br /&gt;
The properties are:&lt;br /&gt;
&lt;br /&gt;
// Get submitted parameters.&lt;br /&gt;
$attemptid     = required_param(&#039;attempt&#039;,  PARAM_INT);&lt;br /&gt;
$thispage      = optional_param(&#039;thispage&#039;, 0, PARAM_INT);&lt;br /&gt;
$nextpage      = optional_param(&#039;nextpage&#039;, 0, PARAM_INT);&lt;br /&gt;
$next          = optional_param(&#039;next&#039;,          false, PARAM_BOOL);&lt;br /&gt;
$finishattempt = optional_param(&#039;finishattempt&#039;, false, PARAM_BOOL);&lt;br /&gt;
$timeup        = optional_param(&#039;timeup&#039;,        0,      PARAM_BOOL); // True if form was submitted by timer.&lt;br /&gt;
$scrollpos     = optional_param(&#039;scrollpos&#039;,     &#039;&#039;,     PARAM_RAW);&lt;br /&gt;
// Here we can catch our hide-flag&lt;br /&gt;
&lt;br /&gt;
And then in the place:&lt;br /&gt;
&lt;br /&gt;
if ($page == -1) {&lt;br /&gt;
    $nexturl = $attemptobj-&amp;gt;summary_url();&lt;br /&gt;
&lt;br /&gt;
we can add checking hide-flag and if we need hide the summary page set the $finishattempt variable as true.&lt;br /&gt;
&lt;br /&gt;
If we need show the confirm window before redirecting to preview page we can use $button-&amp;gt;add_action(new confirm_action(get_string(&#039;confirmclose&#039;, &#039;quiz&#039;), null, get_string(&#039;submitallandfinish&#039;, &#039;quiz&#039;))); for the &amp;quot;next&amp;quot; button on the last attempt page.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48594</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48594"/>
		<updated>2015-09-24T08:46:03Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: /* Implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quiz ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quiz user sees a summary page asking to confirm quiz finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quiz without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quiz page.&lt;br /&gt;
&lt;br /&gt;
[[File:3.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing next user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add yes/no trigger to Layout menu of quiz.&lt;br /&gt;
&lt;br /&gt;
[[File:5.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quiz:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some ideas how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quiz.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Add row&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If we don`t want to add a new column we may add a new row to a table quiz_slots. This table contains the information about quiz pages configuration. May be it`s a reason to add a new additional slot for summary page. Some columns fill by negative numbers to mark it as not a question. This way allow not to change structure but confuses different objects in one table. It can cause more additional conditions in php code to filter what is question and what is not and which page to show in quiz and which not.&lt;br /&gt;
&lt;br /&gt;
[[File:8.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit quiz name&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This way is a temporary solution and it doesn`t need any addings to database. If we need to add flag we can add to a quiz name or intro any invisible symbol and then check it as a flag.&lt;br /&gt;
&lt;br /&gt;
[[File:9.png]]&lt;br /&gt;
&lt;br /&gt;
The problem that user can delete it by name/intro edition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The last page of the quiz redirects us to the summary page. Now it should be checked if summery page should be shawn. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We can create this fork next way:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
next button sends a form with different properties of current and next page (look moodle\mod\quiz\renderer.php - attempt_form function). Inside this function we can check the hide-flag from database and send additional value by form.&lt;br /&gt;
Another script (moodle\mod\quiz\renderer.php) catches this form and checks different given properties. &lt;br /&gt;
The properties are:&lt;br /&gt;
&lt;br /&gt;
// Get submitted parameters.&lt;br /&gt;
$attemptid     = required_param(&#039;attempt&#039;,  PARAM_INT);&lt;br /&gt;
$thispage      = optional_param(&#039;thispage&#039;, 0, PARAM_INT);&lt;br /&gt;
$nextpage      = optional_param(&#039;nextpage&#039;, 0, PARAM_INT);&lt;br /&gt;
$next          = optional_param(&#039;next&#039;,          false, PARAM_BOOL);&lt;br /&gt;
$finishattempt = optional_param(&#039;finishattempt&#039;, false, PARAM_BOOL);&lt;br /&gt;
$timeup        = optional_param(&#039;timeup&#039;,        0,      PARAM_BOOL); // True if form was submitted by timer.&lt;br /&gt;
$scrollpos     = optional_param(&#039;scrollpos&#039;,     &#039;&#039;,     PARAM_RAW);&lt;br /&gt;
// Here we can catch our hide-flag&lt;br /&gt;
&lt;br /&gt;
And then in the place:&lt;br /&gt;
&lt;br /&gt;
if ($page == -1) {&lt;br /&gt;
    $nexturl = $attemptobj-&amp;gt;summary_url();&lt;br /&gt;
&lt;br /&gt;
we can add checking hide-flag and if we need hide the summary page set the $finishattempt variable as true.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48593</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48593"/>
		<updated>2015-09-24T08:45:15Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quiz ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quiz user sees a summary page asking to confirm quiz finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quiz without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quiz page.&lt;br /&gt;
&lt;br /&gt;
[[File:3.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing next user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add yes/no trigger to Layout menu of quiz.&lt;br /&gt;
&lt;br /&gt;
[[File:5.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quiz:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some ideas how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quiz.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Add row&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If we don`t want to add a new column we may add a new row to a table quiz_slots. This table contains the information about quiz pages configuration. May be it`s a reason to add a new additional slot for summary page. Some columns fill by negative numbers to mark it as not a question. This way allow not to change structure but confuses different objects in one table. It can cause more additional conditions in php code to filter what is question and what is not and which page to show in quiz and which not.&lt;br /&gt;
&lt;br /&gt;
[[File:8.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit quiz name&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This way is a temporary solution and it doesn`t need any addings to database. If we need to add flag we can add to a quiz name or intro any invisible symbol and then check it as a flag.&lt;br /&gt;
&lt;br /&gt;
[[File:9.png]]&lt;br /&gt;
&lt;br /&gt;
The problem that user can delete it by name/intro edition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The last page of the quiz redirects us to the summary page. Now it should be checked if summery page should be shawn. We can create this fork next way:&lt;br /&gt;
next button sends a form with different properties of current and next page (look moodle\mod\quiz\renderer.php - attempt_form function). Inside this function we can check the hide-flag from database and send additional value by form.&lt;br /&gt;
Another script (moodle\mod\quiz\renderer.php) catches this form and checks different given properties. &lt;br /&gt;
The properties are:&lt;br /&gt;
&lt;br /&gt;
// Get submitted parameters.&lt;br /&gt;
$attemptid     = required_param(&#039;attempt&#039;,  PARAM_INT);&lt;br /&gt;
$thispage      = optional_param(&#039;thispage&#039;, 0, PARAM_INT);&lt;br /&gt;
$nextpage      = optional_param(&#039;nextpage&#039;, 0, PARAM_INT);&lt;br /&gt;
$next          = optional_param(&#039;next&#039;,          false, PARAM_BOOL);&lt;br /&gt;
$finishattempt = optional_param(&#039;finishattempt&#039;, false, PARAM_BOOL);&lt;br /&gt;
$timeup        = optional_param(&#039;timeup&#039;,        0,      PARAM_BOOL); // True if form was submitted by timer.&lt;br /&gt;
$scrollpos     = optional_param(&#039;scrollpos&#039;,     &#039;&#039;,     PARAM_RAW);&lt;br /&gt;
// Here we can catch our hide-flag&lt;br /&gt;
&lt;br /&gt;
And then in the place:&lt;br /&gt;
&lt;br /&gt;
if ($page == -1) {&lt;br /&gt;
    $nexturl = $attemptobj-&amp;gt;summary_url();&lt;br /&gt;
&lt;br /&gt;
we can add checking hide-flag and if we need hide the summary page set the $finishattempt variable as true.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48579</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48579"/>
		<updated>2015-09-24T06:53:37Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: /* Storing the flag */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quiz ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quiz user sees a summary page asking to confirm quiz finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quiz without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quiz page.&lt;br /&gt;
&lt;br /&gt;
[[File:3.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing next user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add yes/no trigger to Layout menu of quiz.&lt;br /&gt;
&lt;br /&gt;
[[File:5.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quiz:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some ideas how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quiz.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Add row&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If we don`t want to add a new column we may add a new row to a table quiz_slots. This table contains the information about quiz pages configuration. May be it`s a reason to add a new additional slot for summary page. Some columns fill by negative numbers to mark it as not a question. This way allow not to change structure but confuses different objects in one table. It can cause more additional conditions in php code to filter what is question and what is not and which page to show in quiz and which not.&lt;br /&gt;
&lt;br /&gt;
[[File:8.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit quiz name&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This way is a temporary solution and it doesn`t need any addings to database. If we need to add flag we can add to a quiz name or intro any invisible symbol and then check it as a flag.&lt;br /&gt;
&lt;br /&gt;
[[File:9.png]]&lt;br /&gt;
&lt;br /&gt;
The problem that user can delete it by name/intro edition.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48578</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48578"/>
		<updated>2015-09-24T06:53:16Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quiz ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quiz user sees a summary page asking to confirm quiz finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quiz without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quiz page.&lt;br /&gt;
&lt;br /&gt;
[[File:3.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing next user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add yes/no trigger to Layout menu of quiz.&lt;br /&gt;
&lt;br /&gt;
[[File:5.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quiz:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some ideas how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quiz.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Add row&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If we don`t want to add a new column we may add a new row to a table quiz_slots. This table contains the information about quiz pages configuration. May be it`s a reason to add a new additional slot for summary page. Some columns fill by negative numbers to mark it as not a question. This way allow not to change structure but confuses different objects in one table. It can cause more additional conditions in php code to filter what is question and what is not and which page to show in quiz and which not.&lt;br /&gt;
&lt;br /&gt;
[[File:8.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit quiz name&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This way is a temporary solution and it doesn`t need any addings to database. If we need to add flag we can add to a quiz name or intro any invisible symbol and then check it as a flag.&lt;br /&gt;
&lt;br /&gt;
[[File:9.png]]&lt;br /&gt;
&lt;br /&gt;
The problem that user can delete it by name/intro edition.&lt;br /&gt;
&lt;br /&gt;
There are all my ideas for this solution. If somebody knows how to do it better or can something advise please help me.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=File:X.png&amp;diff=48577</id>
		<title>File:X.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=File:X.png&amp;diff=48577"/>
		<updated>2015-09-24T06:51:22Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48576</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48576"/>
		<updated>2015-09-24T06:50:22Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quize ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quize user sees a summary page asking to confirm quize finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quize without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quize page.&lt;br /&gt;
&lt;br /&gt;
[[File:3.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing next user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add yes/no trigger to Layout menu of quize.&lt;br /&gt;
&lt;br /&gt;
[[File:5.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quize:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:X.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some ideas how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quize.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Add row&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If we don`t want to add a new column we may add a new row to a table quize_slots. This table contains the information about quize pages configuration. May be it`s a reason to add a new additional slot for summary page. Some columns fill by negative numbers to mark it as not a question. This way allow not to change structure but confuses different objects in one table. It can cause more additional conditions in php code to filter what is question and what is not and which page to show in quize and which not.&lt;br /&gt;
&lt;br /&gt;
[[File:8.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit quiz name&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This way is a temporary solution and it doesn`t need any addings to database. If we need to add flag we can add to a quize name or intro any invisible symbol and then check it as a flag.&lt;br /&gt;
&lt;br /&gt;
[[File:9.png]]&lt;br /&gt;
&lt;br /&gt;
The problem that user can delete it by name/intro edition.&lt;br /&gt;
&lt;br /&gt;
There are all my ideas for this solution. If somebody knows how to do it better or can something advise please help me.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=File:10.png&amp;diff=48575</id>
		<title>File:10.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=File:10.png&amp;diff=48575"/>
		<updated>2015-09-24T06:45:10Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: Dima kekc uploaded a new version of File:10.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=File:10.png&amp;diff=48574</id>
		<title>File:10.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=File:10.png&amp;diff=48574"/>
		<updated>2015-09-24T06:36:49Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: Dima kekc uploaded a new version of File:10.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=File:10.png&amp;diff=48573</id>
		<title>File:10.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=File:10.png&amp;diff=48573"/>
		<updated>2015-09-24T06:31:49Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: Dima kekc uploaded a new version of File:10.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48572</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48572"/>
		<updated>2015-09-24T06:21:31Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: /* Turning off the summary page */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quize ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quize user sees a summary page asking to confirm quize finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quize without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quize page.&lt;br /&gt;
&lt;br /&gt;
[[File:3.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing next user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
There are some variants to place this option:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add yes/no trigger to Layout menu of quize.&lt;br /&gt;
&lt;br /&gt;
[[File:5.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quize:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:10.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some ideas how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quize.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Add row&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If we don`t want to add a new column we may add a new row to a table quize_slots. This table contains the information about quize pages configuration. May be it`s a reason to add a new additional slot for summary page. Some columns fill by negative numbers to mark it as not a question. This way allow not to change structure but confuses different objects in one table. It can cause more additional conditions in php code to filter what is question and what is not and which page to show in quize and which not.&lt;br /&gt;
&lt;br /&gt;
[[File:8.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit quiz name&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This way is a temporary solution and it doesn`t need any addings to database. If we need to add flag we can add to a quize name or intro any invisible symbol and then check it as a flag.&lt;br /&gt;
&lt;br /&gt;
[[File:9.png]]&lt;br /&gt;
&lt;br /&gt;
The problem that user can delete it by name/intro edition.&lt;br /&gt;
&lt;br /&gt;
There are all my ideas for this solution. If somebody knows how to do it better or can something advise please help me.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48571</id>
		<title>Quiz Summary Page Hiding</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Quiz_Summary_Page_Hiding&amp;diff=48571"/>
		<updated>2015-09-24T06:20:34Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: /* Finishing quize without summary page */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Summary page in Moodle quize ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
At the end of every quize user sees a summary page asking to confirm quize finishing.&lt;br /&gt;
&lt;br /&gt;
[[{{ns:file}}:SummaryPage1.png]]&lt;br /&gt;
&lt;br /&gt;
Pushing the &amp;quot;Submit all and finish&amp;quot; user gets another submit request.&lt;br /&gt;
&lt;br /&gt;
[[File:2.PNG]]&lt;br /&gt;
&lt;br /&gt;
Only after this user can finish and go to review page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Finishing quize without summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
As a way not see the summary page is to ask the confirmation on the last quize page.&lt;br /&gt;
&lt;br /&gt;
[[File:3.PNG]]&lt;br /&gt;
&lt;br /&gt;
Pushing next user finishes his attempt and goes to review page.&lt;br /&gt;
&lt;br /&gt;
[[File:4.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Turning off the summary page ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We should have an additional option to omit the summary page.&lt;br /&gt;
&lt;br /&gt;
My variants to place this option are:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit settings:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add yes/no trigger to Layout menu of quize.&lt;br /&gt;
&lt;br /&gt;
[[File:5.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Quiz administration -&amp;gt; Edit quize:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a checkbox.&lt;br /&gt;
&lt;br /&gt;
[[File:6.jpg]]&lt;br /&gt;
&lt;br /&gt;
Add a new special summary page with a add-option on the page. And spedial close-button for disabling.&lt;br /&gt;
&lt;br /&gt;
[[File:10.png]]&lt;br /&gt;
&lt;br /&gt;
== Storing the flag ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The main problem of this task we need save anywhere the flag about the summary page showing. I`ve got some ideas how to save this information:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Change table structure&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The most obvious way to add a new column to the quiz information table mdl_quize.This table was created for storing options and it`s common to add such things. But this table has already many columns and we need to take into account our new column in backup and restore procedures.&lt;br /&gt;
&lt;br /&gt;
[[File:7.PNG ]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Add row&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If we don`t want to add a new column we may add a new row to a table quize_slots. This table contains the information about quize pages configuration. May be it`s a reason to add a new additional slot for summary page. Some columns fill by negative numbers to mark it as not a question. This way allow not to change structure but confuses different objects in one table. It can cause more additional conditions in php code to filter what is question and what is not and which page to show in quize and which not.&lt;br /&gt;
&lt;br /&gt;
[[File:8.PNG]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Edit quiz name&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This way is a temporary solution and it doesn`t need any addings to database. If we need to add flag we can add to a quize name or intro any invisible symbol and then check it as a flag.&lt;br /&gt;
&lt;br /&gt;
[[File:9.png]]&lt;br /&gt;
&lt;br /&gt;
The problem that user can delete it by name/intro edition.&lt;br /&gt;
&lt;br /&gt;
There are all my ideas for this solution. If somebody knows how to do it better or can something advise please help me.&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=File:7.PNG&amp;diff=48570</id>
		<title>File:7.PNG</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=File:7.PNG&amp;diff=48570"/>
		<updated>2015-09-24T06:18:19Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: Dima kekc uploaded a new version of File:7.PNG&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=File:7.PNG&amp;diff=48569</id>
		<title>File:7.PNG</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=File:7.PNG&amp;diff=48569"/>
		<updated>2015-09-24T06:17:59Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: Dima kekc uploaded a new version of File:7.PNG&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=File:7.PNG&amp;diff=48568</id>
		<title>File:7.PNG</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=File:7.PNG&amp;diff=48568"/>
		<updated>2015-09-24T06:17:15Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: Dima kekc uploaded a new version of File:7.PNG&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=File:7.PNG&amp;diff=48567</id>
		<title>File:7.PNG</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=File:7.PNG&amp;diff=48567"/>
		<updated>2015-09-24T06:16:43Z</updated>

		<summary type="html">&lt;p&gt;Dima kekc: Dima kekc uploaded a new version of File:7.PNG&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dima kekc</name></author>
	</entry>
</feed>