Learning with Texts - Fork
2.10.0-fork
Learn foreign languages with texts
|
Manage active texts. More...
Namespaces | |
Lwt | |
Functions | |
edit_texts_get_wh_query ($currentquery, $currentquerymode, $currentregexmode) | |
edit_texts_get_wh_tag ($currentlang) | |
edit_texts_mark_action ($markaction, $marked, $actiondata) | |
edit_texts_delete ($txid) | |
edit_texts_archive ($txid) | |
edit_texts_do_operation ($op, $message1, $no_pagestart) | |
edit_texts_form ($text, $annotated) | |
edit_texts_new ($lid) | |
edit_texts_change ($txid) | |
edit_texts_filters_form ($currentlang, $recno, $currentpage, $pages) | |
edit_texts_other_pages ($recno) | |
edit_texts_show_text_row ($txrecord, $currentlang, $statuses) | |
edit_texts_texts_form ($currentlang, $showCounts, $sql, $recno) | |
edit_texts_display ($message) | |
edit_texts_do_page () | |
Manage active texts.
Call: edit_texts.php?.... ... markaction=[opcode] ... do actions on marked texts ... del=[textid] ... do delete ... arch=[textid] ... do archive ... op=Check ... do check ... op=Save ... do insert new ... op=Change ... do update ... op=Save+and+Open ... do insert new and open ... op=Change+and+Open ... do update and open ... new=1 ... display new text screen ... chg=[textid] ... display edit screen ... filterlang=[langid] ... language filter ... sort=[sortcode] ... sort ... page=[pageno] ... page ... query=[titlefilter] ... title filter
PHP version 8.1
edit_texts_archive | ( | $txid | ) |
Archive a text.
int | $txid | text ID |
@global string $tbpref Database table prefix
edit_texts_change | ( | $txid | ) |
Create the main window to edit an existing text.
int | $txid | Text ID |
@global string $tbpref Database table prefix
edit_texts_delete | ( | $txid | ) |
Delete an existing text.
string | int | $txid | Text ID |
@global string $tbpref Database table prefix
edit_texts_display | ( | $message | ) |
Main display for the edit text functionality.
string | $message | Message to display. |
@global string $tbpref Database table prefix @global int $debug Debug mode active or not
edit_texts_do_operation | ( | $op, | |
$message1, | |||
$no_pagestart | |||
) |
Do an operation on texts.
string | $op | Operation name |
mixed | $message1 | Unnused |
int | bool | $no_pagestart | If you don't want a page |
@global string $tbpref Database table prefix
edit_texts_do_page | ( | ) |
Main function for displaying the edit_texts page.
edit_texts_filters_form | ( | $currentlang, | |
$recno, | |||
$currentpage, | |||
$pages | |||
) |
Do the filters form for texts display.
string | $currentlang | Current language ID |
int | $recno | |
int | $currentpage | Current page number |
int | $pages | Total number of pages |
edit_texts_form | ( | $text, | |
$annotated | |||
) |
edit_texts_get_wh_query | ( | $currentquery, | |
$currentquerymode, | |||
$currentregexmode | |||
) |
Get the value of $wh_query.
string | $currentquery | Current database query |
string | $currentquerymode | |
string | $currentregexmode |
edit_texts_get_wh_tag | ( | $currentlang | ) |
Return the value for $wh_tag.
string | int | $currentlang | Current language ID |
edit_texts_mark_action | ( | $markaction, | |
$marked, | |||
$actiondata | |||
) |
When a mark action is in use, do the action.
string | $markaction | Type of action |
array | $marked | Texts marked. |
string | $actiondata | Values to insert to the database |
@global string $tbpref Database table prefix
@psalm-return list{string, null}
edit_texts_new | ( | $lid | ) |
Create a window to make a new text in the target language.
int | $lid | Language ID |
@global string $tbpref
edit_texts_other_pages | ( | $recno | ) |
Make links to navigate to other pages if necessary.
int | $recno | Record number |
edit_texts_show_text_row | ( | $txrecord, | |
$currentlang, | |||
$statuses | |||
) |
Display the content of a table row for text edition.
array | $txrecord | Various information about the text should contain 'TxID' at least. |
string | $currentlang | Current language ID |
array{int<0,5>|98|99,array{string,string}} | $statuses List of statuses WITH unknown words (status 0) |
edit_texts_texts_form | ( | $currentlang, | |
$showCounts, | |||
$sql, | |||
$recno | |||
) |
Main form for displaying multiple texts.
string | $currentlang | Current language ID |
string | $showCounts | Number of items to show, put into a string |
string | $sql | SQL string to execute |
int | $recno | Record number |
@global int $debug Display debug information.