Function __global->privilege_exists
Definitions
sources/permissions3.php
- Check if a privilege exists.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $name | ID_TEXT | No | No | required parameter | N/A | N/A | The name of the option |
Returns
- Whether it exists
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Check if a privilege exists.
*
* @param ID_TEXT $name The name of the option
* @return boolean Whether it exists
*/
function privilege_exists(string $name) : bool
* Check if a privilege exists.
*
* @param ID_TEXT $name The name of the option
* @return boolean Whether it exists
*/
function privilege_exists(string $name) : bool

