|
Learning with Texts - Fork
2.10.0-fork
Learn foreign languages with texts
|
Ignore single word (new term with status 99) More...
Namespaces | |
| Lwt | |
Functions | |
| get_word ($textid, $textpos) | |
| insert_word_wellknown_to_database ($textid, $word) | |
| insert_word_wellknown_javascript ($word, $wid, $hex, $textid) | |
| show_page_insert_word_wellknown ($word, $wid, $hex, $textid) | |
| do_insert_word_wellknown ($textid, $textpos) | |
Ignore single word (new term with status 99)
Call: insert_word_wellknown.php?tid=[textid]&ord=[textpos]
PHP version 8.1
| do_insert_word_wellknown | ( | $textid, | |
| $textpos | |||
| ) |
Main function to insert a new word with display and JS action.
| string | $textid | ID of the text |
| string | $textpos | Position of the word in the text. |
| get_word | ( | $textid, | |
| $textpos | |||
| ) |
Return the word at a specific position in a text.
| string | $textid | ID of the text |
| string | $textpos | Position of the word in the text. |
@global string $tbpref
| insert_word_wellknown_javascript | ( | $word, | |
| $wid, | |||
| $hex, | |||
| $textid | |||
| ) |
Make the well-known word as no longer marked.
| string | $word | New well-known word |
| string | int | $wid | New well-known word ID |
| string | $hex | Hexadecimal version of the lowercase word. |
| string | int | $textid | ID of the text. |
@global string $tbpref
| insert_word_wellknown_to_database | ( | $textid, | |
| $word | |||
| ) |
Edit the database to add the word.
| string | $textif | ID of the text |
| string | $word | Word to add |
@global string $tbpref
| show_page_insert_word_wellknown | ( | $word, | |
| $wid, | |||
| $hex, | |||
| $textid | |||
| ) |
Echoes a complete HTML page, with JavaScript content.
| string | $word | New well-known word |
| string | int | $wid | New well-known word ID |
| string | $hex | Hexadecimal version of the lowercase word. |
| string | int | $textid | ID of the text. |