|
Learning with Texts - Fork 2.6.0-fork
Learn foreign languages with texts
|
Responsible for drawing the header when reading texts. More...
Namespaces | |
| namespace | Lwt |
Functions | |
| getData ($textid) | |
| do_header_row ($textid, $langid) | |
| do_title ($title, $sourceURI) | |
| do_settings ($textid) | |
| save_audio_position ($textid) | |
| do_text_header_content ($textid, $only_body=true) | |
Responsible for drawing the header when reading texts.
Call: do_text_header.php?text=[textid]
| do_header_row | ( | $textid, | |
| $langid | |||
| ) |
Print the main title row.
| int | $textid | Text ID |
| string | $langid | Language ID to navigate between texts of same language |
| do_settings | ( | $textid | ) |
Prepare user settings for this text.
| string | $textid | Text ID |
| do_text_header_content | ( | $textid, | |
$only_body = true |
|||
| ) |
Main function for displaying header. It will print HTML content.
| string | $textid | ID of the requiered text |
| bool | $only_body | If true, only show the inner body. If false, create a complete HTML document. |
| do_title | ( | $title, | |
| $sourceURI | |||
| ) |
Print the title of the text.
| string | $title | Title of the text |
| string | $sourceURI | URL of the text (if any) |
| getData | ( | $textid | ) |
Get the text and language data associated with the text.
| string | $textid | ID of the text |
@global string $tbpref Table name prefix
@psalm-return array<string, float|int|null|string>|false|null
| save_audio_position | ( | $textid | ) |
Save the position of the audio reading for a text.
| string | $textid | ID of the text |
Save audio position