ajax_save_impr_text.php
\file \brief Save Improved Annotation
Call: inc/ajax_save_impr_text.php
Tags
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
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
Return values
array<string|int, string> —Result as array, with answer on "error" or "success"