Learning with Texts - Fork 2.4.0-fork
Learn foreign languages with texts
Namespaces | Functions
do_text_header.php File Reference

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)
 

Detailed Description

Responsible for drawing the header when reading texts.

Call: do_text_header.php?text=[textid]

Function Documentation

◆ do_header_row()

do_header_row (   $textid,
  $langid 
)

Print the main title row.

Parameters
int$textidText ID
string$langidLanguage ID to navigate between texts of same language
Since
2.0.4-fork

◆ do_settings()

do_settings (   $textid)

Prepare user settings for this text.

Parameters
string$textidText ID
Since
2.0.4-fork

◆ do_text_header_content()

do_text_header_content (   $textid,
  $only_body = true 
)

Main function for displaying header. It will print HTML content.

Parameters
string$textidID of the requiered text
bool$only_bodyIf true, only show the inner body. If false, create a complete HTML document.
Since
2.0.3-fork

◆ do_title()

do_title (   $title,
  $sourceURI 
)

Print the title of the text.

Parameters
string$titleTitle of the text
string$sourceURIURL of the text (if any)
Since
2.0.4-fork

◆ getData()

getData (   $textid)

Get the text and language data associated with the text.

Parameters
string$textidID of the text

@global string $tbpref Table name prefix

Since
2.0.3-fork
Returns
null|string[]

@psalm-return array<string, string>|null

◆ save_audio_position()

save_audio_position (   $textid)

Save the position of the audio reading for a text.

Parameters
string$textidID of the text
Since
2.0.4-fork

Save audio position