Function __global->_choose_moniker
Definitions
sources/urls2.php
- Delete an old moniker, and place a new one.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $page | ID_TEXT | No | No | required parameter | N/A | N/A | Page name |
| $type | ID_TEXT | No | No | required parameter | N/A | N/A | Screen type code |
| $id | ID_TEXT | No | No | required parameter | N/A | N/A | Resource ID |
| $moniker_src | string | No | No | required parameter | N/A | N/A | String from which a moniker will be chosen (may not be blank) |
| $no_exists_check_for | ?string | No | No | Null | N/A | N/A | Whether to skip the exists check for a certain moniker (will be used to pass "existing self" for edits) (null: nothing existing to check against) |
| $scope_context | ?string | No | No | Null | N/A | N/A | Where the moniker will be placed in the moniker URL tree (null: unknown, so make so no duplicates anywhere) |
Returns
- Chosen moniker
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Delete an old moniker, and place a new one.
*
* @param ID_TEXT $page Page name
* @param ID_TEXT $type Screen type code
* @param ID_TEXT $id Resource ID
* @param string $moniker_src String from which a moniker will be chosen (may not be blank)
* @param ?string $no_exists_check_for Whether to skip the exists check for a certain moniker (will be used to pass "existing self" for edits) (null: nothing existing to check against)
* @param ?string $scope_context Where the moniker will be placed in the moniker URL tree (null: unknown, so make so no duplicates anywhere)
* @return string Chosen moniker
*/
function _choose_moniker(string $page, string $type, string $id, string $moniker_src, ?string $no_exists_check_for = null, ?string $scope_context = null) : string
* Delete an old moniker, and place a new one.
*
* @param ID_TEXT $page Page name
* @param ID_TEXT $type Screen type code
* @param ID_TEXT $id Resource ID
* @param string $moniker_src String from which a moniker will be chosen (may not be blank)
* @param ?string $no_exists_check_for Whether to skip the exists check for a certain moniker (will be used to pass "existing self" for edits) (null: nothing existing to check against)
* @param ?string $scope_context Where the moniker will be placed in the moniker URL tree (null: unknown, so make so no duplicates anywhere)
* @return string Chosen moniker
*/
function _choose_moniker(string $page, string $type, string $id, string $moniker_src, ?string $no_exists_check_for = null, ?string $scope_context = null) : string

