Function __global->_translate_file_access
Definitions
sources/abstract_file_manager.php
- Translate truth about needing world write access to a file to absolute permissions.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: int
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $world_access | boolean | No | No | required parameter | N/A | N/A | Whether world file access is required |
| $file_type | ID_TEXT | No | No | Blank (empty string) | N/A | N/A | The file type (blank: don't care) |
Returns
- The absolute permission
- Type: integer
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Translate truth about needing world write access to a file to absolute permissions.
*
* @param boolean $world_access Whether world file access is required
* @param ID_TEXT $file_type The file type (blank: don't care)
* @return integer The absolute permission
*/
function _translate_file_access(bool $world_access, string $file_type = '') : int
* Translate truth about needing world write access to a file to absolute permissions.
*
* @param boolean $world_access Whether world file access is required
* @param ID_TEXT $file_type The file type (blank: don't care)
* @return integer The absolute permission
*/
function _translate_file_access(bool $world_access, string $file_type = '') : int

