Function __global->remap_portable_as_resource_id
Definitions
sources/resource_fs.php
- Convert a portable ID to something local.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
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 |
| $portable_data | ?mixed | No | No | required parameter | N/A | N/A | Portable ID details (null: not set) |
Returns
- The resource ID (null: not set)
- Type: ?mixed
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Convert a portable ID to something local.
*
* @param ID_TEXT $resource_type The resource type
* @param ?mixed $portable_data Portable ID details (null: not set)
* @return ?mixed The resource ID (null: not set)
*/
function remap_portable_as_resource_id(string $resource_type, $portable_data)
* Convert a portable ID to something local.
*
* @param ID_TEXT $resource_type The resource type
* @param ?mixed $portable_data Portable ID details (null: not set)
* @return ?mixed The resource ID (null: not set)
*/
function remap_portable_as_resource_id(string $resource_type, $portable_data)

