Function __global->get_page_permissions_for_environment
Definitions
sources/permissions2.php
- Gather the permissions for the specified page as form field inputs.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: object
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $zone | ID_TEXT | No | No | required parameter | N/A | N/A | The zone |
| $page | ID_TEXT | No | No | required parameter | N/A | N/A | The page |
| $help | ?Tempcode | No | No | Null | N/A | N/A | Extra help to show in interface (null: none) |
Returns
- The form fields
- Type: Tempcode
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Gather the permissions for the specified page as form field inputs.
*
* @param ID_TEXT $zone The zone
* @param ID_TEXT $page The page
* @param ?Tempcode $help Extra help to show in interface (null: none)
* @return Tempcode The form fields
*/
function get_page_permissions_for_environment(string $zone, string $page, ?object $help = null) : object
* Gather the permissions for the specified page as form field inputs.
*
* @param ID_TEXT $zone The zone
* @param ID_TEXT $page The page
* @param ?Tempcode $help Extra help to show in interface (null: none)
* @return Tempcode The form fields
*/
function get_page_permissions_for_environment(string $zone, string $page, ?object $help = null) : object
