Function Resource_fs_base->resource_load
Definitions
sources/resource_fs_base_class.php
- Finds the properties for some resource. Wraps file_load/folder_load.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $resource_type | ID_TEXT | No | No | required parameter | N/A | N/A | Resource type |
| $filename | SHORT_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) |
Returns
- Details of the resource (false: error)
- Type: ~array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Finds the properties for some resource. Wraps file_load/folder_load.
*
* @param ID_TEXT $resource_type Resource type
* @param SHORT_TEXT $filename Filename
* @param string $path The path (blank: root / not applicable)
* @return ~array Details of the resource (false: error)
*/
public function resource_load(string $resource_type, string $filename, string $path)
* Finds the properties for some resource. Wraps file_load/folder_load.
*
* @param ID_TEXT $resource_type Resource type
* @param SHORT_TEXT $filename Filename
* @param string $path The path (blank: root / not applicable)
* @return ~array Details of the resource (false: error)
*/
public function resource_load(string $resource_type, string $filename, string $path)

