Learning with Texts - Fork
2.10.0-fork
Learn foreign languages with texts
|
Change status of term while testing. More...
Namespaces | |
Lwt | |
Functions | |
do_set_test_status_html ($status, $oldstatus, $newscore, $oldscore) | |
set_test_status_change_progress ($stchange) | |
do_set_test_status_javascript ( $wid, $status, $stchange, $tests_status=array(), $ajax=false) | |
do_set_test_status_content ($wid, $status, $oldstatus, $stchange, $ajax=false) | |
start_set_text_status () | |
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
do_set_test_status_content | ( | $wid, | |
$status, | |||
$oldstatus, | |||
$stchange, | |||
$ajax = false |
|||
) |
Make the page content of the word status page.
int | $wid | Word ID |
int | $status | New learning status for the word |
int | $oldstatus | Previous learning status |
int | $stchange | -1, 0, or 1 if status is rising or not |
@global string $tbpref Database table prefix
do_set_test_status_html | ( | $status, | |
$oldstatus, | |||
$newscore, | |||
$oldscore | |||
) |
Echo the page HTML content when setting word status.
int | $status | New learning status for the word |
int | $oldstatus | Previous learning status |
int | $newscore | New score for the word |
int | $oldscore | Previous score |
do_set_test_status_javascript | ( | $wid, | |
$status, | |||
$stchange, | |||
$tests_status = array() , |
|||
$ajax = false |
|||
) |
Make the JavaScript action for setting a word status.
int | $wid | Word ID |
int | $status | New learning status for the word |
int | $stchange | -1, 0, or 1 if status is rising or not |
Update remaining words count.
Get a new word.
set_test_status_change_progress | ( | $stchange | ) |
Increment the session progress in learning new words.
int | $stchange | -1, 0, or 1 if status is rising or not |
@psalm-return array{total: int, wrong: int, correct: int, nottested: int}
start_set_text_status | ( | ) |
Start the word status set page.
@global string $tbpref Database table prefix