|
Learning with Texts - Fork 2.4.0-fork
Learn foreign languages with texts
|
Ignore single word (new term with status 98) More...
Functions | |
| get_word ($textid, $textpos) | |
| insert_word_ignore_to_database ($textid, $word) | |
| do_javascript_action ($word, $wid, $hex, $textid) | |
| show_page_insert_word_ignore ($word, $wid, $hex, $textid) | |
| do_insert_word_ignore ($textid, $textpos) | |
Ignore single word (new term with status 98)
Call: insert_word_ignore.php?tid=[textid]&ord=[textpos]
| do_insert_word_ignore | ( | $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. |
| do_javascript_action | ( | $word, | |
| $wid, | |||
| $hex, | |||
| $textid | |||
| ) |
Make the ignored word as no longer marked.
| string | $word | New ignored word |
| string | $wid | New ignored word ID |
| string | $hex | Hexadecimal version of the lowercase word. |
| string | $textid | ID of the text. |
@global string $tbpref
| 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_ignore_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_ignore | ( | $word, | |
| $wid, | |||
| $hex, | |||
| $textid | |||
| ) |
Echoes a complete HTML page, with JavaScript content.
| string | $word | New well-known word |
| string | $wid | New well-known word ID |
| string | $hex | Hexadecimal version of the lowercase word. |
| string | $textid | ID of the text. |