Function __global->choose_language
Definitions
sources/lang.php
- UI to choose a language.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $title | Tempcode | No | No | required parameter | N/A | N/A | Title for the form |
| $tip | boolean | No | No | False | N/A | N/A | Whether to give a tip about edit order |
| $allow_all_selection | boolean | No | No | False | N/A | N/A | Whether to add an 'all' entry to the list |
| $post | boolean | No | No | True | N/A | N/A | Whether to use a POST parameter |
Returns
- The UI (Tempcode) or the language to use (string/LANGUAGE_NAME)
- Type: mixed
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* UI to choose a language.
*
* @param Tempcode $title Title for the form
* @param boolean $tip Whether to give a tip about edit order
* @param boolean $allow_all_selection Whether to add an 'all' entry to the list
* @param boolean $post Whether to use a POST parameter
* @return mixed The UI (Tempcode) or the language to use (string/LANGUAGE_NAME)
*/
function choose_language(object $title, bool $tip = false, bool $allow_all_selection = false, bool $post = true)
* UI to choose a language.
*
* @param Tempcode $title Title for the form
* @param boolean $tip Whether to give a tip about edit order
* @param boolean $allow_all_selection Whether to add an 'all' entry to the list
* @param boolean $post Whether to use a POST parameter
* @return mixed The UI (Tempcode) or the language to use (string/LANGUAGE_NAME)
*/
function choose_language(object $title, bool $tip = false, bool $allow_all_selection = false, bool $post = true)

