|
Learning with Texts - Fork 2.6.0-fork
Learn foreign languages with texts
|
Import terms from file or Text area. More...
Functions | |
| my_str_getcsv ($input) | |
| upload_words_import_terms ($fields, $tabs, $file_upl, $col, $lang) | |
| upload_words_import_tags ($fields, $tabs, $file_upl) | |
| upload_words_import () | |
| upload_words_display () | |
Variables | |
| if(isset($_REQUEST['op'])) | else |
Import terms from file or Text area.
Call: upload_words.php?.... ... op=Import ... do the import
| my_str_getcsv | ( | $input | ) |
Get the CSV from a string.
| string | $input | Input string. |
@psalm-return false|non-empty-list<null|string>|null
| upload_words_display | ( | ) |
Display the main for adding new words.
| upload_words_import | ( | ) |
Import terms of tags to the database.
@global string $tbpref Database table prefix
| upload_words_import_tags | ( | $fields, | |
| $tabs, | |||
| $file_upl | |||
| ) |
Import term tags only to the database.
| array | $fields | Fields indexes |
| string | $tabs | Columns separator |
| bool | $file_upl | If the input text is an uploaded file |
@global string $tbpref Database table prefix
| upload_words_import_terms | ( | $fields, | |
| $tabs, | |||
| $file_upl, | |||
| $col, | |||
| $lang | |||
| ) |
Import terms to the database.
| array | $fields | Fields indexes |
| string | $tabs | Columns separator |
| bool | $file_upl | If the input text is an uploaded file |
| string[] | $col | Columns names |
| int | $lang | Language ID |
@global string $tbpref Database table prefix
| if (isset( $_REQUEST[ 'op'])) else |