Function __global->get_lang_file_section
Definitions
sources/lang_compile.php
- Get an array of all the INI entries in the specified language for a particular section.Note that this function is not actually used for regular language file compilation to extract strings, for performance reasons.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $lang | LANGUAGE_NAME | No | No | required parameter | N/A | N/A | The language |
| $file | ?ID_TEXT | No | No | Null | N/A | N/A | The language file (null: we are loading this section from all language files) |
| $section | string | No | No | descriptions | N/A | N/A | The section |
Returns
- The INI entries
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get an array of all the INI entries in the specified language for a particular section.Note that this function is not actually used for regular language file compilation to extract strings, for performance reasons.
*
* @param LANGUAGE_NAME $lang The language
* @param ?ID_TEXT $file The language file (null: we are loading this section from all language files)
* @param string $section The section
* @return array The INI entries
*/
function get_lang_file_section(string $lang, ?string $file = null, string $section = 'descriptions') : array
* Get an array of all the INI entries in the specified language for a particular section.Note that this function is not actually used for regular language file compilation to extract strings, for performance reasons.
*
* @param LANGUAGE_NAME $lang The language
* @param ?ID_TEXT $file The language file (null: we are loading this section from all language files)
* @param string $section The section
* @return array The INI entries
*/
function get_lang_file_section(string $lang, ?string $file = null, string $section = 'descriptions') : array

