Learning with Texts - Fork
2.10.0-fork
Learn foreign languages with texts
|
Display table for Improved Annotation (Edit Mode),. More...
Namespaces | |
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]
Lwt\Ajax\Improved_Text\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. |
Lwt\Ajax\Improved_Text\edit_term_form | ( | $textid | ) |
Full form for terms edition in a given text.
int | $textid | Text ID. |
Lwt\Ajax\Improved_Text\edit_term_interaction | ( | $wordlc, | |
$textid | |||
) |
Prepare the HTML content for the interaction with a term
Lwt\Ajax\Improved_Text\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'}
Lwt\Ajax\Improved_Text\get_translations | ( | $word_id | ) |
Find the possible translations for a term.
int | $word_id | Term ID |
@psalm-return list<non-empty-string>
Lwt\Ajax\Improved_Text\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}
Lwt\Ajax\Improved_Text\make_trans | ( | $i, | |
$wid, | |||
$trans, | |||
$word, | |||
$lang | |||
) |