Function __global->find_ids_via_guids
Definitions
sources/resource_fs.php
- Find the resource IDs from the resource GUIDs. This is useful if you need to resolve many GUIDs at once during performant-critical code.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $guids | array | No | No | required parameter | N/A | N/A | The GUIDs |
Returns
- Mapping between GUIDs and IDs (anything where there's no match will result in no array entry being present for that GUID)
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find the resource IDs from the resource GUIDs. This is useful if you need to resolve many GUIDs at once during performant-critical code.
*
* @param array $guids The GUIDs
* @return array Mapping between GUIDs and IDs (anything where there's no match will result in no array entry being present for that GUID)
*/
function find_ids_via_guids(array $guids) : array
* Find the resource IDs from the resource GUIDs. This is useful if you need to resolve many GUIDs at once during performant-critical code.
*
* @param array $guids The GUIDs
* @return array Mapping between GUIDs and IDs (anything where there's no match will result in no array entry being present for that GUID)
*/
function find_ids_via_guids(array $guids) : array

