Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:create:functions:casetime [24.01.2015 14:59]
alexander.ritter [caseTime()]
en:create:functions:casetime [24.01.2015 15:01]
alexander.ritter [Example 2]
Line 23: Line 23:
 ===== Example 2 ===== ===== Example 2 =====
  
-If the participant ​needs less than 15 seconds for the previous page, the following PHP code redisplays the page -- along with the text element "​too_quick"​.+If the participant ​needed ​less than 15 seconds for the previous page, the following PHP code redisplays the page -- along with the text element "​too_quick"​.
  
 <code php> <code php>
Line 40: Line 40:
 <code php> <code php>
 if (caseTime('​hitherto'​) < 60) { if (caseTime('​hitherto'​) < 60) {
-  text('​please_check'​);​ // information ​next +  text('​please_check'​);​ // information ​message 
-  setNextPage('​start'​);​ // after "​Next"​ to page "​start"​+  setNextPage('​start'​);​ // after "​Next" ​go to page "​start"​
   pageStop(); // do not display any further content on the page   pageStop(); // do not display any further content on the page
 } }
 </​code>​ </​code>​
en/create/functions/casetime.txt · Last modified: 24.01.2015 15:01 by alexander.ritter
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki