Learning with Texts - Fork  2.10.0-fork
Learn foreign languages with texts
Namespaces | Functions
ajax_show_sentences.php File Reference

Show sentences in edit_texts.php, etc. More...

Namespaces

 Lwt
 

Functions

 do_ajax_show_sentences ($langid, $wid, $word, $ctl)
 

Detailed Description

Show sentences in edit_texts.php, etc.

Call: inc/ajax_show_sentences.php?... ... lang=[langid] ... language ... word=[word] ... word in lowercase ... ctl=[ctl] ... sentence js control

Function Documentation

◆ do_ajax_show_sentences()

do_ajax_show_sentences (   $langid,
  $wid,
  $word,
  $ctl 
)

Return the sentences associated to this word.

Parameters
int$langidLanguage ID
int$widWord ID
string$wordWord translation
string$ctlPath for the textarea of the sentence of the word being edited.
Returns
string
Deprecated:
2.9.0 Use the REST API instead.