Learning with Texts - Fork  2.10.0-fork
Learn foreign languages with texts
Namespaces | Functions
do_test.php File Reference

Start a test (frameset) More...

Namespaces

 Lwt
 

Functions

 get_l2_language_name ()
 
 get_test_property ()
 
 do_test_mobile_page_content ($property)
 
 do_test_mobile_page ($property=null)
 
 do_test_desktop_page ($property=null)
 
 do_test_page ($p)
 
 try_start_test ($p)
 

Detailed Description

Start a test (frameset)

Call: do_test.php?lang=[langid] Call: do_test.php?text=[textid] Call: do_test.php?selection=1 (SQL via $_SESSION['testsql']) Call: do_test.php?type=table for a table of words Call: do_test.php?type=[1-5] for a test of words.

PHP version 8.1

Function Documentation

◆ do_test_desktop_page()

do_test_desktop_page (   $property = null)

Make the desktop test page

Parameters
string$propertyUnnused, null by default
Returns
void

◆ do_test_mobile_page()

do_test_mobile_page (   $property = null)

Make the mobile test page.

Parameters
string$propertyUnnused, null by default
Returns
void
Since
2.6.0-fork Function rewrote and no longer deprecated

◆ do_test_mobile_page_content()

do_test_mobile_page_content (   $property)

Make the content of the mobile page.

Parameters
string$propertyURL property
Returns
void
Deprecated:
Use do_frameset_mobile_page_content instead

◆ do_test_page()

do_test_page (   $p)

Start the test page.

Parameters
string$pUnnused.
Since
2.2.1 The $mobile parameter is no longer required.
2.6.0 Mobile interface is back and self-set.
2.7.0 Adds a CSS rule to auto-enlarge the body.
Returns
void

◆ get_l2_language_name()

get_l2_language_name ( )

Find the L2 language name.

Returns
string Language name

@global string $tbpref Database table prefix

◆ get_test_property()

get_test_property ( )

Find the appropiate property to add to the test. It uses requests provided to the page.

Returns
string Some URL property

◆ try_start_test()

try_start_test (   $p)

Main function to try to start a test page.

If unsifficiant arguments are provided to the page, the page will be redirected to edit_texts.php.