Function __global->find_id_via_moniker
Definitions
sources/resource_fs.php
- Find the resource ID from the resource moniker.
- 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 |
| $resource_moniker | ID_TEXT | No | No | required parameter | N/A | N/A | The moniker |
Returns
- The ID (null: no match)
- Type: ?ID_TEXT
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find the resource ID from the resource moniker.
*
* @param ID_TEXT $resource_type The resource type
* @param ID_TEXT $resource_moniker The moniker
* @return ?ID_TEXT The ID (null: no match)
*/
function find_id_via_moniker(string $resource_type, string $resource_moniker) : ?string
* Find the resource ID from the resource moniker.
*
* @param ID_TEXT $resource_type The resource type
* @param ID_TEXT $resource_moniker The moniker
* @return ?ID_TEXT The ID (null: no match)
*/
function find_id_via_moniker(string $resource_type, string $resource_moniker) : ?string

