Function __global->find_id_via_commandr_fs_filename
Definitions
sources/resource_fs.php
- Find the resource ID from the Commandr-fs (repository) filename.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $resource_type | ID_TEXT | No | No | required parameter | N/A | N/A | The resource type |
| $filename | ID_TEXT | No | No | required parameter | N/A | N/A | The filename |
Returns
- The ID (null: no match)
- Type: ?ID_TEXT
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find the resource ID from the Commandr-fs (repository) filename.
*
* @param ID_TEXT $resource_type The resource type
* @param ID_TEXT $filename The filename
* @return ?ID_TEXT The ID (null: no match)
*/
function find_id_via_commandr_fs_filename(string $resource_type, string $filename) : ?string
* Find the resource ID from the Commandr-fs (repository) filename.
*
* @param ID_TEXT $resource_type The resource type
* @param ID_TEXT $filename The filename
* @return ?ID_TEXT The ID (null: no match)
*/
function find_id_via_commandr_fs_filename(string $resource_type, string $filename) : ?string

