upload_words.php
\file \brief Import terms from file or Text area
Call: upload_words.php?.... ... op=Import ... do the import
PHP version 8.1
Tags
Table of Contents
Functions
- my_str_getcsv() : array<string|int, null|string>|false|null
 - Get the CSV from a string.
 - upload_words_import_simple() : void
 - upload_words_import_complete() : void
 - upload_words_handle_multiwords() : void
 - upload_words_import_terms() : string
 - Import terms to the database.
 - display_imported_terms() : void
 - upload_words_import_tags() : void
 - Import term tags only to the database.
 - upload_words_import() : void
 - Import terms of tags to the database.
 - upload_words_display() : void
 - Display the main for adding new words.
 
Functions
my_str_getcsv()
Get the CSV from a string.
    
                    my_str_getcsv(string $input) : array<string|int, null|string>|false|null
    
        Parameters
- $input : string
 - 
                    
Input string.
 
Tags
Return values
array<string|int, null|string>|false|nullupload_words_import_simple()
    
                    upload_words_import_simple(mixed $lang, mixed $fields, mixed $columns, mixed $tabs, mixed $file_name, mixed $status) : void
    
        Parameters
- $lang : mixed
 - $fields : mixed
 - $columns : mixed
 - $tabs : mixed
 - $file_name : mixed
 - $status : mixed
 
upload_words_import_complete()
    
                    upload_words_import_complete(mixed $lang, mixed $fields, mixed $columns, mixed $tabs, mixed $file_name, mixed $status, mixed $overwrite) : void
    
        Parameters
- $lang : mixed
 - $fields : mixed
 - $columns : mixed
 - $tabs : mixed
 - $file_name : mixed
 - $status : mixed
 - $overwrite : mixed
 
upload_words_handle_multiwords()
    
                    upload_words_handle_multiwords(mixed $lang, mixed $last_update) : void
    
        Parameters
- $lang : mixed
 - $last_update : mixed
 
upload_words_import_terms()
Import terms to the database.
    
                    upload_words_import_terms(array<string|int, mixed> $fields, string $tabs, bool $file_upl, array<int, string> $col, int $lang) : string
    
        Parameters
- $fields : array<string|int, mixed>
 - 
                    
Fields indexes
 - $tabs : string
 - 
                    
Columns separator
 - $file_upl : bool
 - 
                    
If the input text is an uploaded file
 - $col : array<int, string>
 - 
                    
Columns names
 - $lang : int
 - 
                    
Language ID
 
Tags
Return values
string —Last word update timestamp
display_imported_terms()
    
                    display_imported_terms(mixed $last_update, mixed $rtl) : void
    
        Parameters
- $last_update : mixed
 - $rtl : mixed
 
upload_words_import_tags()
Import term tags only to the database.
    
                    upload_words_import_tags(array<string|int, mixed> $fields, string $tabs, bool $file_upl) : void
    
        Parameters
- $fields : array<string|int, mixed>
 - 
                    
Fields indexes
 - $tabs : string
 - 
                    
Columns separator
 - $file_upl : bool
 - 
                    
If the input text is an uploaded file
 
Tags
upload_words_import()
Import terms of tags to the database.
    
                    upload_words_import() : void
    
    
    
    Tags
upload_words_display()
Display the main for adding new words.
    
                    upload_words_display() : void