Function Standard_crud_module->get_permission_fields
Definitions
sources/crud_module.php
- Standard CRUD-module permission chooser.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: object
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$category_id | ?ID_TEXT | No | No | required parameter | N/A | N/A | The category ID the permissions are being chosen for (null: new category) |
$help | ?Tempcode | No | No | Null | N/A | N/A | Extra help to show in interface (null: none) |
$new_category | boolean | No | No | False | N/A | N/A | Whether this is a new category (don't load permissions, default to on) |
$pinterface_view | ?Tempcode | No | No | Null | N/A | N/A | Label for view permissions (null: default) |
Returns
- The permission fields
- Type: Tempcode
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Standard CRUD-module permission chooser.
*
* @param ?ID_TEXT $category_id The category ID the permissions are being chosen for (null: new category)
* @param ?Tempcode $help Extra help to show in interface (null: none)
* @param boolean $new_category Whether this is a new category (don't load permissions, default to on)
* @param ?Tempcode $pinterface_view Label for view permissions (null: default)
* @return Tempcode The permission fields
*/
public function get_permission_fields(?string $category_id, ?object $help = null, bool $new_category = false, ?object $pinterface_view = null) : object
* Standard CRUD-module permission chooser.
*
* @param ?ID_TEXT $category_id The category ID the permissions are being chosen for (null: new category)
* @param ?Tempcode $help Extra help to show in interface (null: none)
* @param boolean $new_category Whether this is a new category (don't load permissions, default to on)
* @param ?Tempcode $pinterface_view Label for view permissions (null: default)
* @return Tempcode The permission fields
*/
public function get_permission_fields(?string $category_id, ?object $help = null, bool $new_category = false, ?object $pinterface_view = null) : object