Learning with Texts - Fork 2.6.0-fork
Learn foreign languages with texts
Loading...
Searching...
No Matches
Functions
SaveSetting Namespace Reference

Functions

 get_parameters ()
 
 unset_settings ()
 
 save ($k, $v)
 

Detailed Description

Save a Setting (k/v) and redirect to URI u

Call: save_setting_redirect.php?k=[key]&v=[value]&u=[RedirURI]

Since
2.6.0-fork You can omit either u, or (k, v).

Function Documentation

◆ get_parameters()

get_parameters ( )

Return the parameters from the URL.

Returns
array{0: string, 1: string, 2: string} Setting key, setting value and target URL

◆ save()

save (   $k,
  $v 
)

Save settings and go to a page.

Parameters
stringk Setting key
stringv Setting value
stringu URL to go to
Returns
void

◆ unset_settings()

unset_settings ( )

Unset all session settings, and set current text to default.

Returns
void