Documentation

insert_word_wellknown.php

\file \brief Ignore single word (new term with status 99)

Call: insert_word_wellknown.php?tid=[textid]&ord=[textpos]

PHP version 8.1

Tags
category

Helper_Frame

author

LWT Project lwt-project@hotmail.com

since
1.0.3

Table of Contents

Functions

get_word()  : string
Return the word at a specific position in a text.
insert_word_wellknown_to_database()  : int
Edit the database to add the word.
insert_word_wellknown_javascript()  : void
Make the well-known word as no longer marked.
show_page_insert_word_wellknown()  : void
Echoes a complete HTML page, with JavaScript content.
do_insert_word_wellknown()  : void
Main function to insert a new word with display and JS action.

Functions

get_word()

Return the word at a specific position in a text.

get_word(string $textid, string $textpos) : string
Parameters
$textid : string

ID of the text

$textpos : string

Position of the word in the text.

Tags
global

string $tbpref

Return values
string

A word

insert_word_wellknown_to_database()

Edit the database to add the word.

insert_word_wellknown_to_database(mixed $textid, string $word) : int
Parameters
$textid : mixed
$word : string

Word to add

Tags
global

string $tbpref

Return values
int

Word ID

insert_word_wellknown_javascript()

Make the well-known word as no longer marked.

insert_word_wellknown_javascript(string $word, string|int $wid, string $hex, string|int $textid) : void
Parameters
$word : string

New well-known word

$wid : string|int

New well-known word ID

$hex : string

Hexadecimal version of the lowercase word.

$textid : string|int

ID of the text.

Tags
global

string $tbpref

show_page_insert_word_wellknown()

Echoes a complete HTML page, with JavaScript content.

show_page_insert_word_wellknown(string $word, string|int $wid, string $hex, string|int $textid) : void
Parameters
$word : string

New well-known word

$wid : string|int

New well-known word ID

$hex : string

Hexadecimal version of the lowercase word.

$textid : string|int

ID of the text.

do_insert_word_wellknown()

Main function to insert a new word with display and JS action.

do_insert_word_wellknown(string $textid, string $textpos) : void
Parameters
$textid : string

ID of the text

$textpos : string

Position of the word in the text.

Tags
since
2.0.4-fork

        
On this page

Search results