Documentation

all_words_wellknown.php

\file \brief Setting all unknown words to Well Known (99)

Call: all_words_wellknown.php?text=[textid] (mark all words as well-known) all_words_wellknown.php?text=[textid]&status=[statusint] (mark with a specific status, normally 98 or 99)

PHP version 8.1

Tags
category

Helper_Frame

author

LWT Project lwt-project@hotmail.com

license

Unlicense http://unlicense.org/

link
https://hugofara.github.io/lwt/docs/php/files/all-words-wellknown.html
since
1.0.3

Table of Contents

Functions

all_words_wellknown_get_words()  : mysqli_result|true
Make the SQL query for all words in the text.
all_words_wellknown_process_word()  : array<string|int, mixed>
For each word, add the word to the database.
all_words_wellknown_main_loop()  : array<string|int, mixed>
Main processing loop to mark all words of a text with a new status.
all_words_wellknown_count_terms()  : void
Display the number of edited words.
all_words_wellknown_javascript()  : void
Execute JavaScript to change the display of all words.
all_words_wellknown_content()  : void
Make the main content of the page for all well-known words.
all_words_wellknown_full()  : void
Make a full HTML page for all well-known words.

Functions

all_words_wellknown_get_words()

Make the SQL query for all words in the text.

all_words_wellknown_get_words(int $txid) : mysqli_result|true
Parameters
$txid : int

Text id

Return values
mysqli_result|true

SQL query.

all_words_wellknown_process_word()

For each word, add the word to the database.

all_words_wellknown_process_word(int $status, string $term, string $termlc, int $langid) : array<string|int, mixed>
Parameters
$status : int

New word status

$term : string

Word to mark

$termlc : string

Same as $term, but in lowercase.

$langid : int

Language ID

Tags
since
2.5.3-fork

Do not crash when echoing an error

since
2.5.3-fork

Do not crash when a word is already registred to the database

psalm-return

list{int, string}

Return values
array<string|int, mixed>

[int, string] Number of rows edited and a javascript query.

all_words_wellknown_main_loop()

Main processing loop to mark all words of a text with a new status.

all_words_wellknown_main_loop(int $txid, int $status) : array<string|int, mixed>
Parameters
$txid : int

Text ID

$status : int

New status to apply to all words.

Tags
since
2.5.3-fork

Use 'let' instead of 'var' in returned JS

psalm-return

list{int, string}

Return values
array<string|int, mixed>

[int, string] Number of edited words, and JavaScript query to change their display

all_words_wellknown_count_terms()

Display the number of edited words.

all_words_wellknown_count_terms(int $status, int $count) : void
Parameters
$status : int

New status

$count : int

Number of edited words.

Tags
since
2.5.3-fork

Improved messages (more clear, and can handle singular/plural)

all_words_wellknown_javascript()

Execute JavaScript to change the display of all words.

all_words_wellknown_javascript(int $txid, string $javascript) : void
Parameters
$txid : int

Text ID

$javascript : string

JavaScript-formatted string.

all_words_wellknown_content()

Make the main content of the page for all well-known words.

all_words_wellknown_content(int $txid, int $status) : void
Parameters
$txid : int

Text ID

$status : int

New status to apply to words.

all_words_wellknown_full()

Make a full HTML page for all well-known words.

all_words_wellknown_full(int $txid, int $status) : void
Parameters
$txid : int

Text ID

$status : int

New status to apply to words.


        
On this page

Search results