Documentation

do_test.php

\file \brief 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

Tags
category

User_Interface

author

LWT Project lwt-project@hotmail.com

license

Unlicense http://unlicense.org/

link
https://hugofara.github.io/lwt/docs/php/files/do-test.html
since
1.0.3

Table of Contents

Functions

get_l2_language_name()  : string
Find the L2 language name.
get_test_property()  : string
Find the appropiate property to add to the test.
do_test_mobile_page_content()  : void
Make the content of the mobile page.
do_test_mobile_page()  : void
Make the mobile test page.
do_test_desktop_page()  : void
Make the desktop test page
do_test_page()  : void
Start the test page.
try_start_test()  : void
Main function to try to start a test page.

Functions

get_l2_language_name()

Find the L2 language name.

get_l2_language_name() : string
Tags
global

string $tbpref Database table prefix

Return values
string

Language name

get_test_property()

Find the appropiate property to add to the test.

get_test_property() : string

It uses requests provided to the page.

Return values
string

Some URL property

do_test_mobile_page_content()

Make the content of the mobile page.

do_test_mobile_page_content(string $property) : void
Parameters
$property : string

URL property

Tags
deprecated

Use do_frameset_mobile_page_content instead

do_test_mobile_page()

Make the mobile test page.

do_test_mobile_page([string $property = null ]) : void
Parameters
$property : string = null

Unnused, null by default

Tags
since
2.6.0-fork

Function rewrote and no longer deprecated

do_test_desktop_page()

Make the desktop test page

do_test_desktop_page([string $property = null ]) : void
Parameters
$property : string = null

Unnused, null by default

do_test_page()

Start the test page.

do_test_page(string $p) : void
Parameters
$p : string

Unnused.

Tags
since
2.2.1

The $mobile parameter is no longer required.

since
2.6.0

Mobile interface is back and self-set.

since
2.7.0

Adds a CSS rule to auto-enlarge the body.

try_start_test()

Main function to try to start a test page.

try_start_test(mixed $p) : void

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

Parameters
$p : mixed

        
On this page

Search results