Documentation

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
category

User_Interface

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
psalm-return

false|non-empty-list<null|string>|null

deprecated
2.9.0

This function is no longer used and will be removed

Return values
array<string|int, null|string>|false|null

upload_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
global

string $tbpref Database table prefix

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
global

string $tbpref Database table prefix

upload_words_import()

Import terms of tags to the database.

upload_words_import() : void
Tags
global

string $tbpref Database table prefix

upload_words_display()

Display the main for adding new words.

upload_words_display() : void

        
On this page

Search results