Function Hook_commandr_fs_extended_config__ecom_prods_permissions->write_file
Definitions
sources/hooks/systems/commandr_fs_extended_config/ecom_prods_permissions.php
- Standard Commandr-fs file writing function for commandr_fs hooks.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $meta_dir | array | No | No | required parameter | N/A | N/A | The current meta-directory path |
| $meta_root_node | string | No | No | required parameter | N/A | N/A | The root node of the current meta-directory |
| $file_name | string | No | No | required parameter | N/A | N/A | The file name |
| $contents | string | No | No | required parameter | N/A | N/A | The new file contents |
| &$commandr_fs | object | Yes | No | required parameter | N/A | N/A | A reference to the Commandr filesystem object |
Returns
- Success?
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Standard Commandr-fs file writing function for commandr_fs hooks.
*
* @param array $meta_dir The current meta-directory path
* @param string $meta_root_node The root node of the current meta-directory
* @param string $file_name The file name
* @param string $contents The new file contents
* @param object $commandr_fs A reference to the Commandr filesystem object
* @return boolean Success?
*/
public function write_file(array $meta_dir, string $meta_root_node, string $file_name, string $contents, object &$commandr_fs) : bool
* Standard Commandr-fs file writing function for commandr_fs hooks.
*
* @param array $meta_dir The current meta-directory path
* @param string $meta_root_node The root node of the current meta-directory
* @param string $file_name The file name
* @param string $contents The new file contents
* @param object $commandr_fs A reference to the Commandr filesystem object
* @return boolean Success?
*/
public function write_file(array $meta_dir, string $meta_root_node, string $file_name, string $contents, object &$commandr_fs) : bool

