|
Learning with Texts - Fork 2.4.0-fork
Learn foreign languages with texts
|
Change term status (Table Test) More...
Namespaces | |
| namespace | Lwt |
Functions | |
| get_new_status ($oldstatus, $up) | |
| update_word_status ($wid, $currstatus) | |
| do_ajax_chg_term_status ($wid, $up) | |
Change term status (Table Test)
Call: inc/ajax_chg_term_status.php?id=[wordID]&data=[translation]
| 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 |
| update_word_status | ( | $wid, | |
| $currstatus | |||
| ) |
Save the new word status to the database.
| int | $wid | Word ID |
| int | $currstatus | Current status in the good value range. |
@global string $tbpref Database table prefix