Documentation

ajax_save_impr_text.php

\file \brief Save Improved Annotation

Call: inc/ajax_save_impr_text.php

Tags
author

LWT Project lwt-project@hotmail.com

license

Unlicense http://unlicense.org/

link
https://hugofara.github.io/lwt/docs/php/files/inc-ajax-save-impr-text.html
since
1.5.0

Table of Contents

Functions

save_impr_text_data()  : string
Save data from printed text.
do_ajax_save_impr_text()  : string
Save a printed text.
save_impr_text()  : array<string|int, string>
Save a text with improved annotations.

Functions

save_impr_text_data()

Save data from printed text.

save_impr_text_data(int $textid, int $line, string $val) : string
Parameters
$textid : int

Text ID

$line : int

Line number to save

$val : string

Proposed new annotation for the term

Tags
global

string $tbpref Database table prefix.

Return values
string

Error message, or "OK" if success.

do_ajax_save_impr_text()

Save a printed text.

do_ajax_save_impr_text(int $textid, string $elem, mixed $data) : string
Parameters
$textid : int

Text ID

$elem : string

Element to edit

$data : mixed

JSON data

Return values
string

Success string

save_impr_text()

Save a text with improved annotations.

save_impr_text(int $textid, string $elem, mixed $data) : array<string|int, string>
Parameters
$textid : int

Text ID

$elem : string

Element to select

$data : mixed

Data element

Tags
psalm-return

array{error?: string, success?: 'OK'}

Return values
array<string|int, string>

Result as array, with answer on "error" or "success"


        
On this page

Search results