Function Resource_fs_base->file_save__flat
Definitions
sources/resource_fs_base_class.php
- Save function for resource-fs (for files). Parses the data for some resource to a resource-fs file.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $filename | ID_TEXT | No | No | required parameter | N/A | N/A | Filename |
| $path | string | No | No | required parameter | N/A | N/A | The path (blank: root / not applicable) |
| $data | string | No | No | required parameter | N/A | N/A | Resource data |
Returns
- The resource ID (false: error, could not create via these properties / here)
- Type: ~ID_TEXT
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Save function for resource-fs (for files). Parses the data for some resource to a resource-fs file.
*
* @param ID_TEXT $filename Filename
* @param string $path The path (blank: root / not applicable)
* @param string $data Resource data
* @return ~ID_TEXT The resource ID (false: error, could not create via these properties / here)
*/
public function file_save__flat(string $filename, string $path, string $data)
* Save function for resource-fs (for files). Parses the data for some resource to a resource-fs file.
*
* @param ID_TEXT $filename Filename
* @param string $path The path (blank: root / not applicable)
* @param string $data Resource data
* @return ~ID_TEXT The resource ID (false: error, could not create via these properties / here)
*/
public function file_save__flat(string $filename, string $path, string $data)

