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

Launch an AJAX query to show imported terms. More...

Namespaces

 Lwt
 

Functions

 limit_current_page ($currentpage, $recno, $maxperpage)
 
 imported_terms_header ($recno, $currentpage, $last_update, $maxperpage=100)
 
 get_imported_terms ($recno, $currentpage, $last_update)
 
 select_imported_terms ($last_update, $offset, $max_terms)
 
 show_imported_terms ($last_update, $limit, $rtl)
 
 do_ajax_show_imported_terms ($last_update, $currentpage, $recno, $rtl)
 
 imported_terms_list ($last_update, $currentpage, $recno)
 

Detailed Description

Launch an AJAX query to show imported terms.

Call: inc/ajax_show_imported_terms?last_update=[last_update]&page=[page number]&count=[count]&rt=[rtl]

Function Documentation

◆ do_ajax_show_imported_terms()

do_ajax_show_imported_terms (   $last_update,
  $currentpage,
  $recno,
  $rtl 
)

Show the imported terms.

Parameters
string$last_updateLast update
int$currentpageCurrent number of the page
int$recnoNumber of record
bool$rtlTrue if this language is right-to-left
Returns
void
Deprecated:
2.9.0 Use the AJAX API instead.

◆ get_imported_terms()

get_imported_terms (   $recno,
  $currentpage,
  $last_update 
)

Prepare the page to display imported terms.

Parameters
int$recnoRecord number
int$currentpageCurrent page
string$last_updateLast update
Returns
string SQL-formatted query to limit the number of results
Deprecated:
2.9.0 Use imported_terms_header instead

◆ imported_terms_header()

imported_terms_header (   $recno,
  $currentpage,
  $last_update,
  $maxperpage = 100 
)

Prepare the page to display imported terms.

Parameters
int$recnoRecord number
int$currentpageCurrent page
string$last_updateLast update
int$maxperpageMaximum number of terms per page
Returns
void

◆ imported_terms_list()

imported_terms_list (   $last_update,
  $currentpage,
  $recno 
)

Return the list of imported terms of pages information.

Parameters
string$last_updateTerms import time
int$currentpageCurrent page number
int$recnoNumber of imported terms
Returns
((int|mixed)[]|mixed)[]

@psalm-return array{navigation: array{current_page: mixed, total_pages: int}, terms: mixed}

◆ select_imported_terms()

select_imported_terms (   $last_update,
  $offset,
  $max_terms 
)
Returns
(float|int|null|string)[][]

@psalm-return list<list<float|int|null|string>>

◆ show_imported_terms()

show_imported_terms (   $last_update,
  $limit,
  $rtl 
)

Show the imported terms.

Parameters
string$last_updateLast update
string$limitSQL-formatted query to limit the number of results
Returns
void