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

Start Reading a text (frameset) More...

Namespaces

namespace  Lwt
 

Functions

 get_text_id ()
 
 do_text_mobile_content ($textid, $audio)
 
 do_text_desktop_content ($textid, $audio)
 
 do_text_page ($textid)
 

Variables

if(get_text_id() !==null) else
 

Detailed Description

Start Reading a text (frameset)

Call: do_text.php?text=[textid] Create the main window when reading texts.

Function Documentation

◆ do_text_desktop_content()

do_text_desktop_content (   $textid,
  $audio 
)

Echo the page content for the desktop version of do_text.

Parameters
int$textidText ID
string | null$audioAudio URI
Returns
void

◆ do_text_mobile_content()

do_text_mobile_content (   $textid,
  $audio 
)

Echo the page content for the mobile version of do_text.

Parameters
int$textidText ID
string$audioAudio URI
Returns
void
Deprecated:
Use do_text_desktop_content instead.
Since
2.2.1 It also calls do_frameset_mobile_css and do_frameset_mobile_js

◆ do_text_page()

do_text_page (   $textid)

Echo the text page.

Parameters
int$textitText ID
bool$mobileSet to true if you want the mobile version of the page.
Since
2.2.1 The $mobile parameter is no longer required.
Returns
void

@global string $tbpref Database table prefix.

◆ get_text_id()

get_text_id ( )

Get text ID (if possible).

Text ID if first looked at int the 'text' parameter. If not found, then look at 'start'.

Returns
int|null Text ID or null

Variable Documentation

◆ else

if (get_text_id() !==null) else
Initial value:
{
header("Location: edit_texts.php")