Function __global->find_id_via_guid
Definitions
sources/resource_fs.php
- Find the resource ID from the resource GUID. It is assumed you as the programmer already know the resource-type.
- 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_guid | ID_TEXT | No | No | required parameter | N/A | N/A | The GUID |
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 GUID. It is assumed you as the programmer already know the resource-type.
*
* @param ID_TEXT $resource_guid The GUID
* @return ?ID_TEXT The ID (null: no match)
*/
function find_id_via_guid(string $resource_guid) : ?string
* Find the resource ID from the resource GUID. It is assumed you as the programmer already know the resource-type.
*
* @param ID_TEXT $resource_guid The GUID
* @return ?ID_TEXT The ID (null: no match)
*/
function find_id_via_guid(string $resource_guid) : ?string

