Function __global->load_field_restrictions
Definitions
sources/input_filter.php
- Find all restrictions that apply to our page/type.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $this_page | ?string | No | No | Null | N/A | N/A | The page name scoped for (null: current page) |
| $this_type | ?string | No | No | Null | N/A | N/A | The page type scoped for (null: current type) |
Returns
- List of fields, each of which is a map (restriction => attributes)
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find all restrictions that apply to our page/type.
*
* @param ?string $this_page The page name scoped for (null: current page)
* @param ?string $this_type The page type scoped for (null: current type)
* @return array List of fields, each of which is a map (restriction => attributes)
*/
function load_field_restrictions(?string $this_page = null, ?string $this_type = null) : array
* Find all restrictions that apply to our page/type.
*
* @param ?string $this_page The page name scoped for (null: current page)
* @param ?string $this_type The page type scoped for (null: current type)
* @return array List of fields, each of which is a map (restriction => attributes)
*/
function load_field_restrictions(?string $this_page = null, ?string $this_type = null) : array
