Edit_Word
Table of Contents
Functions
- insert_new_word() : array<string|int, int|string>
 - Insert a new word to the database
 - edit_term() : array{0: string, 1: string}
 - Edit an existing term.
 - lowercase_term_not_equal() : void
 - Use this function if the lowercase version of the word does not correspond.
 - change_term_display() : void
 - Echoes a JavaScript element, that will edit terms diplay
 - edit_word_do_operation() : void
 - edit_word_do_form() : void
 - do_content() : void
 
Functions
insert_new_word()
Insert a new word to the database
    
                    insert_new_word(string $textlc, string $translation) : array<string|int, int|string>
    
        Parameters
- $textlc : string
 - 
                    
The word to insert, in lowercase
 - $translation : string
 - 
                    
Translation of this term
 
Tags
Return values
array<string|int, int|string> —Word id, and then an insertion message
edit_term()
Edit an existing term.
    
                    edit_term(string $translation) : array{0: string, 1: string}
    
        Parameters
- $translation : string
 - 
                    
New translation for this term
 
Return values
array{0: string, 1: string} —Word id, and then an insertion message
lowercase_term_not_equal()
Use this function if the lowercase version of the word does not correspond.
    
                    lowercase_term_not_equal(string $textlc) : void
        It will echo an error message.
Parameters
- $textlc : string
 - 
                    
The lowercase version of the word we want.
 
change_term_display()
Echoes a JavaScript element, that will edit terms diplay
    
                    change_term_display(mixed $wid, mixed $translation, mixed $hex) : void
    
        Parameters
- $wid : mixed
 - $translation : mixed
 - $hex : mixed
 
edit_word_do_operation()
    
                    edit_word_do_operation(mixed $translation, mixed $fromAnn) : void
    
        Parameters
- $translation : mixed
 - $fromAnn : mixed
 
edit_word_do_form()
    
                    edit_word_do_form(mixed $wid, mixed $text_id, mixed $ord, mixed $fromAnn) : void
    
        Parameters
- $wid : mixed
 - $text_id : mixed
 - $ord : mixed
 - $fromAnn : mixed
 
do_content()
    
                    do_content() : void