Function __global->_find_text_file_path
Definitions
sources/textfiles.php
- Helper function for *_text_file.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $codename | string | No | No | required parameter | N/A | N/A | The file name (without .txt) |
| $lang | ?LANGUAGE_NAME | No | No | required parameter | N/A | N/A | The language to load from (null: none) (blank: search) |
Returns
- The path to the file
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Helper function for *_text_file.
*
* @param string $codename The file name (without .txt)
* @param ?LANGUAGE_NAME $lang The language to load from (null: none) (blank: search)
* @return string The path to the file
*/
function _find_text_file_path(string $codename, ?string $lang) : string
* Helper function for *_text_file.
*
* @param string $codename The file name (without .txt)
* @param ?LANGUAGE_NAME $lang The language to load from (null: none) (blank: search)
* @return string The path to the file
*/
function _find_text_file_path(string $codename, ?string $lang) : string

