Learning with Texts - Fork
2.10.0-fork
Learn foreign languages with texts
|
Show test header frame. More...
Namespaces | |
Lwt | |
Functions | |
get_sql_test_data (&$title, &$p) | |
get_lang_test_data (&$title, &$p) | |
get_text_test_data (&$title, &$p) | |
get_test_counts ($testsql) | |
do_test_header_row ($_p) | |
do_test_header_js () | |
do_test_header_content ($title, $p, $totalcountdue, $totalcount, $language) | |
get_test_data (&$title, &$p) | |
do_test_header_page ($title, $p, $totalcountdue, $totalcount, $language) | |
start_test_header_page ($language='L2') | |
Show test header frame.
Call: do_test_header.php?lang=[langid] Call: do_test_header.php?text=[textid] Call: do_test_header.php?selection=1 (SQL via $_SESSION['testsql'])
PHP version 8.1
do_test_header_content | ( | $title, | |
$p, | |||
$totalcountdue, | |||
$totalcount, | |||
$language | |||
) |
Make the header content for tests.
string | $title | Page title |
string | $p | URL property to use |
string | $totalcountdue | Number of words due for today |
string | $totalcount | Total number of words. |
string | $language | L2 language name |
do_test_header_js | ( | ) |
Prepare JavaScript content for the header.
Reset frames location
Prepare frames for testing words
Prepare frames for test table.
do_test_header_page | ( | $title, | |
$p, | |||
$totalcountdue, | |||
$totalcount, | |||
$language | |||
) |
Do the header for test page.
string | $title | Page title |
string | $p | URL property to use |
string | $totalcountdue | Number of words due for today |
string | $totalcount | Total number of words. |
string | $language | L2 Language name |
do_test_header_row | ( | $_p | ) |
Make the header row for tests.
mixed | $_p | URL property to use (unnused), will be removed in LWT 3.0.0 |
get_lang_test_data | ( | & | $title, |
& | $p | ||
) |
Set useful data for the test using language.
string | $title | Title to be overwritten |
string | $p | Property URL to be overwritten |
@global string $tbpref Database table prefix
get_sql_test_data | ( | & | $title, |
& | $p | ||
) |
Set useful data for the test using SQL query.
string | &$title | Title to be overwritten |
string | &$p | Property URL to be overwritten |
@global string $tbpref Database table prefix
get_test_counts | ( | $testsql | ) |
Return the words count for this test.
string | $testsql | SQL query for this test. |
get_test_data | ( | & | $title, |
& | $p | ||
) |
Set useful data for the test.
string | $title | Title to be overwritten |
string | $p | Property URL to be overwritten |
get_text_test_data | ( | & | $title, |
& | $p | ||
) |
Set useful data for the test using text.
string | $title | Title to be overwritten |
string | $p | Property URL to be overwritten |
@global string $tbpref Database table prefix
start_test_header_page | ( | $language = 'L2' | ) |
Use requests passed to the page to start it.
string | $language | L2 language name |