Learning with Texts - Fork
2.10.0-fork
Learn foreign languages with texts
|
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) | |
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]
do_ajax_show_imported_terms | ( | $last_update, | |
$currentpage, | |||
$recno, | |||
$rtl | |||
) |
Show the imported terms.
string | $last_update | Last update |
int | $currentpage | Current number of the page |
int | $recno | Number of record |
bool | $rtl | True if this language is right-to-left |
get_imported_terms | ( | $recno, | |
$currentpage, | |||
$last_update | |||
) |
Prepare the page to display imported terms.
int | $recno | Record number |
int | $currentpage | Current page |
string | $last_update | Last update |
imported_terms_header | ( | $recno, | |
$currentpage, | |||
$last_update, | |||
$maxperpage = 100 |
|||
) |
Prepare the page to display imported terms.
int | $recno | Record number |
int | $currentpage | Current page |
string | $last_update | Last update |
int | $maxperpage | Maximum number of terms per page |
imported_terms_list | ( | $last_update, | |
$currentpage, | |||
$recno | |||
) |
Return the list of imported terms of pages information.
string | $last_update | Terms import time |
int | $currentpage | Current page number |
int | $recno | Number of imported terms |
@psalm-return array{navigation: array{current_page: mixed, total_pages: int}, terms: mixed}
select_imported_terms | ( | $last_update, | |
$offset, | |||
$max_terms | |||
) |
@psalm-return list<list<float|int|null|string>>
show_imported_terms | ( | $last_update, | |
$limit, | |||
$rtl | |||
) |
Show the imported terms.
string | $last_update | Last update |
string | $limit | SQL-formatted query to limit the number of results |