Documentation

edit_mword.php

\file \brief Edit/New Multi-word term (expression)

Call: edit_mword.php?.... ... op=Save ... do insert new ... op=Change ... do update ... tid=[textid]&ord=[textpos]&wid=[wordid] ... edit ... tid=[textid]&ord=[textpos]&txt=[word] ... new or edit

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/edit-mword.html
since
1.0.3-fork

Table of Contents

Functions

export_term_js_dict()  : string
Export term data as a JSON dictionnary.
edit_mword_prepare_term()  : Term
Use the superglobals to load a new Term object.
edit_mword_do_operation()  : void
Do a server operation for multiwords.
edit_mword_do_insert()  : string
Insert a multi-word to the database.
edit_mword_do_update()  : string
Update a multi-word.
edit_mword_new()  : void
Make the main display for editing new multi-word.
edit_mword_update()  : void
Make the main display for editing existing multi-word.
edit_mword_display_new()  : void
Display a form for the insertion of a new multi-word.
edit_mword_display_change()  : void
Display an updating form for a multi-word.
edit_mword_page()  : void
Create the multi-word frame.

Functions

export_term_js_dict()

Export term data as a JSON dictionnary.

export_term_js_dict(mixed $term) : string
Parameters
$term : mixed
Return values
string

JSON dictionnary.

edit_mword_prepare_term()

Use the superglobals to load a new Term object.

edit_mword_prepare_term() : Term

Check if the lowercase version is a good one.

Tags
since
2.5.2-fork

The created term has the attribute "wordcount" assigned (instead of the wrong "word_count").

Return values
Term

The loaded data.

edit_mword_do_operation()

Do a server operation for multiwords.

edit_mword_do_operation(mixed $term) : void
Parameters
$term : mixed

edit_mword_do_insert()

Insert a multi-word to the database.

edit_mword_do_insert(Term $term) : string
Parameters
$term : Term

Multi-word to be inserted.

Tags
global

string $tbpref Database table prefix.

since
2.5.2-fork

Use the "wordcount" attribute of $term instead of the wrong word_count.

Return values
string

"Terms saved: n"

edit_mword_do_update()

Update a multi-word.

edit_mword_do_update(Term $term, int $newstatus) : string
Parameters
$term : Term

Multi-word to be inserted.

$newstatus : int

New multi-word status

Tags
global

string $tbpref Database table prefix.

Return values
string

"Terms updated: n"

edit_mword_new()

Make the main display for editing new multi-word.

edit_mword_new(string $text, int $tid, int $ord, int $len) : void
Parameters
$text : string

Original group of words.

$tid : int

Text ID

$ord : int

Text order

$len : int

Number of words in the multi-word.

Tags
global

string $tbpref Database table prefix.

edit_mword_update()

Make the main display for editing existing multi-word.

edit_mword_update(int $wid, int $tid, int $ord) : void
Parameters
$wid : int

Term ID

$tid : int

Text ID

$ord : int

Text order

Tags
global

string $tbpref Database table prefix.

edit_mword_display_new()

Display a form for the insertion of a new multi-word.

edit_mword_display_new(Term $term, int $tid, int $ord, int $len) : void
Parameters
$term : Term

Multi-word to insert.

$tid : int

Text ID

$ord : int

Text order

$len : int

Number of words in the multi-word.

Tags
global

string $tbpref Database table prefix.

edit_mword_display_change()

Display an updating form for a multi-word.

edit_mword_display_change(Term $term, int $tid, int $ord) : void
Parameters
$term : Term

Multi-word to being modified.

$tid : int

Text ID

$ord : int

Text order

Tags
global

string $tbpref Database table prefix.

edit_mword_page()

Create the multi-word frame.

edit_mword_page() : void
Tags
global

string $tbpref Database table prefix.


        
On this page

Search results