![]() |
Learning with Texts - Fork
2.10.0-fork
Learn foreign languages with texts
|
Change the text display mode. More...
Namespaces | |
Lwt | |
Functions | |
text_mode_save_settings ($showAll, $showLearning) | |
text_mode_page_content ($showAll, $showLearning, $oldShowLearning) | |
change_text_mode ($textid, $showAll, $showLearning) | |
Change the text display mode.
Call: set_text_mode.php?text=[textid]&mode=0/1&showLeaning=0/1
PHP version 8.1
change_text_mode | ( | $textid, | |
$showAll, | |||
$showLearning | |||
) |
Complete workflow for changing text mode. It edits the settings in the database, show the success message and do JavaScript action to change its display.
int | $textid | ID of the current text |
int | $showAll | Whether all word should be shown |
int | $showLearning | Whether to show translation of learning words |
text_mode_page_content | ( | $showAll, | |
$showLearning, | |||
$oldShowLearning | |||
) |
Do the main page content when chaning display of translations.
int | $showAll | Whether all word should be shown |
int | $showLearning | Whether to show translation of learning words |
int | $oldShowLearning | If show learning was previously true (1) or false (0) |
text_mode_save_settings | ( | $showAll, | |
$showLearning | |||
) |
Save text mode settings.
int | $showAll | Whether all word should be shown |
int | $showLearning | Whether to show translation of learning words |
@psalm-return 0|1