Documentation

set_test_status.php

\file \brief Change status of term while testing

Call: set_test_status.php?wid=[wordid]&stchange=+1/-1&[ajax=1] set_test_status.php?wid=[wordid]&status=1..5/98/99&[ajax=1]

PHP version 8.1

Tags
category

Helper_Frame

author

LWT Project lwt-project@hotmail.com

license

Unlicense http://unlicense.org/

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

Table of Contents

Functions

do_set_test_status_html()  : void
Echo the page HTML content when setting word status.
set_test_status_change_progress()  : array<string|int, int>
Increment the session progress in learning new words.
do_set_test_status_javascript()  : void
Make the JavaScript action for setting a word status.
do_set_test_status_content()  : void
Make the page content of the word status page.
start_set_text_status()  : void
Start the word status set page.

Functions

do_set_test_status_html()

Echo the page HTML content when setting word status.

do_set_test_status_html(int $status, int $oldstatus, int $newscore, int $oldscore) : void
Parameters
$status : int

New learning status for the word

$oldstatus : int

Previous learning status

$newscore : int

New score for the word

$oldscore : int

Previous score

set_test_status_change_progress()

Increment the session progress in learning new words.

set_test_status_change_progress(int $stchange) : array<string|int, int>
Parameters
$stchange : int

-1, 0, or 1 if status is rising or not

Tags
psalm-return

array{total: int, wrong: int, correct: int, nottested: int}

Return values
array<string|int, int>

Tests data

do_set_test_status_javascript()

Make the JavaScript action for setting a word status.

do_set_test_status_javascript(int $wid, int $status, int $stchange[, mixed $tests_status = array() ][, mixed $ajax = false ]) : void
Parameters
$wid : int

Word ID

$status : int

New learning status for the word

$stchange : int

-1, 0, or 1 if status is rising or not

$tests_status : mixed = array()
$ajax : mixed = false

do_set_test_status_content()

Make the page content of the word status page.

do_set_test_status_content(int $wid, int $status, int $oldstatus, int $stchange[, mixed $ajax = false ]) : void
Parameters
$wid : int

Word ID

$status : int

New learning status for the word

$oldstatus : int

Previous learning status

$stchange : int

-1, 0, or 1 if status is rising or not

$ajax : mixed = false
Tags
global

string $tbpref Database table prefix

start_set_text_status()

Start the word status set page.

start_set_text_status() : void
Tags
global

string $tbpref Database table prefix


        
On this page

Search results