Documentation

insert_word_ignore.php

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

Call: insert_word_ignore.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_ignore_to_database()  : int
Edit the database to add the word.
do_javascript_action()  : void
Make the ignored word as no longer marked.
show_page_insert_word_ignore()  : void
Echoes a complete HTML page, with JavaScript content.
do_insert_word_ignore()  : 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_ignore_to_database()

Edit the database to add the word.

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

Word to add

Tags
global

string $tbpref

Return values
int

Word ID

do_javascript_action()

Make the ignored word as no longer marked.

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

New ignored word

$wid : string|int

New ignored 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_ignore()

Echoes a complete HTML page, with JavaScript content.

show_page_insert_word_ignore(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_ignore()

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

do_insert_word_ignore(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