Function Resource_fs_base->convert_filename_to_id
Definitions
sources/resource_fs_base_class.php
- Get the resource ID for a filename (of file or folder). Note that filenames are unique across all folders in a filesystem.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$filename | ID_TEXT | required parameter | N/A | N/A | The filename, or filepath |
$resource_type | ID_TEXT | required parameter | N/A | N/A | The resource type |
Return
- A pair: The resource type, the resource ID (null: could not find)
- Type: ?array
- Set: N/A
- Range: N/A