Learning with Texts - Fork
2.10.0-fork
Learn foreign languages with texts
|
Change term status (Table Test). More...
Namespaces | |
Lwt | |
Functions | |
set_word_status ($wid, $status) | |
get_new_status ($oldstatus, $up) | |
update_word_status ($wid, $currstatus) | |
ajax_increment_term_status ($wid, $up) | |
do_ajax_chg_term_status ($wid, $up) | |
Change term status (Table Test).
value-difference should be either 1 or -1.
Call: inc/ajax_chg_term_status.php?id=[wordID]&data=[value-difference]
ajax_increment_term_status | ( | $wid, | |
$up | |||
) |
Do a word status change.
int | $wid | Word ID |
bool | $up | Should the status be incremeted or decremented |
@global string $tbpref Database table prefix.
do_ajax_chg_term_status | ( | $wid, | |
$up | |||
) |
Do a word status change and print the result.
int | $wid | Word ID |
bool | $up | Should the status be incremeted or decremented |
@global string $tbpref Database table prefix.
get_new_status | ( | $oldstatus, | |
$up | |||
) |
Check the consistency of the new status.
int | $oldstatus | Old status |
bool | $up | True if status should incremented, false if decrementation needed |
set_word_status | ( | $wid, | |
$status | |||
) |
Force a term to get a new status.
string | int | $wid | ID of the word to edit |
string | int | $status | New status to set |
@global string $tbpref
update_word_status | ( | $wid, | |
$currstatus | |||
) |
Save the new word status to the database, return the controls.
int | $wid | Word ID |
int | $currstatus | Current status in the good value range. |
@global string $tbpref Database table prefix