do_test_header.php
\file \brief 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
Tags
Table of Contents
Functions
- get_sql_test_data() : string
 - Set useful data for the test using SQL query.
 - get_lang_test_data() : string
 - Set useful data for the test using language.
 - get_text_test_data() : string
 - Set useful data for the test using text.
 - get_test_counts() : array{0: string, 1: string}
 - Return the words count for this test.
 - do_test_header_row() : void
 - Make the header row for tests.
 - do_test_header_js() : void
 - Prepare JavaScript content for the header.
 - do_test_header_content() : void
 - Make the header content for tests.
 - get_test_data() : array{0: string, 1: string}
 - Set useful data for the test.
 - do_test_header_page() : void
 - Do the header for test page.
 - start_test_header_page() : void
 - Use requests passed to the page to start it.
 
Functions
get_sql_test_data()
Set useful data for the test using SQL query.
    
                    get_sql_test_data(string &$title, string &$p) : string
    
        Parameters
- $title : string
 - 
                    
Title to be overwritten
 - $p : string
 - 
                    
Property URL to be overwritten
 
Tags
Return values
string —SQL query to use
get_lang_test_data()
Set useful data for the test using language.
    
                    get_lang_test_data(string &$title, string &$p) : string
    
        Parameters
- $title : string
 - 
                    
Title to be overwritten
 - $p : string
 - 
                    
Property URL to be overwritten
 
Tags
Return values
string —SQL query to use
get_text_test_data()
Set useful data for the test using text.
    
                    get_text_test_data(string &$title, string &$p) : string
    
        Parameters
- $title : string
 - 
                    
Title to be overwritten
 - $p : string
 - 
                    
Property URL to be overwritten
 
Tags
Return values
string —SQL query to use
get_test_counts()
Return the words count for this test.
    
                    get_test_counts(string $testsql) : array{0: string, 1: string}
    
        Parameters
- $testsql : string
 - 
                    
SQL query for this test.
 
Return values
array{0: string, 1: string} —Total words due and total words learning
do_test_header_row()
Make the header row for tests.
    
                    do_test_header_row(mixed $_p) : void
    
        Parameters
- $_p : mixed
 - 
                    
URL property to use (unnused), will be removed in LWT 3.0.0
 
do_test_header_js()
Prepare JavaScript content for the header.
    
                    do_test_header_js() : void
    
    
    
    
do_test_header_content()
Make the header content for tests.
    
                    do_test_header_content(string $title, string $p, string $totalcountdue, string $totalcount, string $language) : void
    
        Parameters
- $title : string
 - 
                    
Page title
 - $p : string
 - 
                    
URL property to use
 - $totalcountdue : string
 - 
                    
Number of words due for today
 - $totalcount : string
 - 
                    
Total number of words.
 - $language : string
 - 
                    
L2 language name
 
get_test_data()
Set useful data for the test.
    
                    get_test_data(string &$title, string &$p) : array{0: string, 1: string}
    
        Parameters
- $title : string
 - 
                    
Title to be overwritten
 - $p : string
 - 
                    
Property URL to be overwritten
 
Return values
array{0: string, 1: string} —Total words due and total words learning
do_test_header_page()
Do the header for test page.
    
                    do_test_header_page(string $title, string $p, string $totalcountdue, string $totalcount, string $language) : void
    
        Parameters
- $title : string
 - 
                    
Page title
 - $p : string
 - 
                    
URL property to use
 - $totalcountdue : string
 - 
                    
Number of words due for today
 - $totalcount : string
 - 
                    
Total number of words.
 - $language : string
 - 
                    
L2 Language name
 
start_test_header_page()
Use requests passed to the page to start it.
    
                    start_test_header_page([string $language = 'L2' ]) : void
    
        Parameters
- $language : string = 'L2'
 - 
                    
L2 language name