Function __global->set_url_moniker
Definitions
sources/content2.php
- Set a URL moniker for a resource.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $content_type | ID_TEXT | No | No | required parameter | N/A | N/A | The type of resource (e.g. download) |
| $content_id | ID_TEXT | No | No | required parameter | N/A | N/A | The old ID of the resource |
| $fields_to_skip | array | No | No | [] | N/A | N/A | List of fields to NOT take in |
| $new_content_id | ?ID_TEXT | No | No | Null | N/A | N/A | The new ID of the resource (null: not being renamed) |
Preview
Code (PHP)
/**
* Set a URL moniker for a resource.
*
* @param ID_TEXT $content_type The type of resource (e.g. download)
* @param ID_TEXT $content_id The old ID of the resource
* @param array $fields_to_skip List of fields to NOT take in
* @param ?ID_TEXT $new_content_id The new ID of the resource (null: not being renamed)
*/
function set_url_moniker(string $content_type, string $content_id, array $fields_to_skip = [], ?string $new_content_id = null)
* Set a URL moniker for a resource.
*
* @param ID_TEXT $content_type The type of resource (e.g. download)
* @param ID_TEXT $content_id The old ID of the resource
* @param array $fields_to_skip List of fields to NOT take in
* @param ?ID_TEXT $new_content_id The new ID of the resource (null: not being renamed)
*/
function set_url_moniker(string $content_type, string $content_id, array $fields_to_skip = [], ?string $new_content_id = null)

