Learning with Texts - Fork 2.9.0-fork
Learn foreign languages with texts
|
Display table for Improved Annotation (Edit Mode),. More...
Namespaces | |
namespace | Lwt |
Functions | |
make_trans ($i, $wid, $trans, $word, $lang) | |
get_translations ($word_id) | |
get_term_translations ($wordlc, $textid) | |
edit_term_interaction ($wordlc, $textid) | |
edit_term_form ($textid) | |
make_form ($textid, $wordlc) | |
do_ajax_edit_impr_text ($textid, $wordlc) | |
Display table for Improved Annotation (Edit Mode),.
Ajax call in print_impr_text.php Call: inc/ajax_edit_impr_text.php?id=[textid]
do_ajax_edit_impr_text | ( | $textid, | |
$wordlc | |||
) |
Do the AJAX modification for editing a printed text.
int | $textid | Text ID |
string | $wordlc | Word lowercase. Can be left empty. |
edit_term_form | ( | $textid | ) |
Full form for terms edition in a given text.
int | $textid | Text ID. |
edit_term_interaction | ( | $wordlc, | |
$textid | |||
) |
Prepare the HTML content for the interaction with a term
get_term_translations | ( | $wordlc, | |
$textid | |||
) |
Gather useful data to edit a term annotation on a specific text.
@psalm-return array{term_lc?: string, wid?: int|null, trans?: string, ann_index?: int<0, max>, term_ord?: int, translations?: array, lang_id?: int, error?: 'Annotation line is ill-formatted'|'Annotation not found'}
get_translations | ( | $word_id | ) |
Find the possible translations for a term.
int | $word_id | Term ID |
@psalm-return list<non-empty-string>
make_form | ( | $textid, | |
$wordlc | |||
) |
Prepare the form for printed text.
int | $textid | Text ID |
string | $wordlc | Lowercase word |
@global string $tbpref Database table prefix.
@psalm-return list{string, string}
make_trans | ( | $i, | |
$wid, | |||
$trans, | |||
$word, | |||
$lang | |||
) |