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

