Function __global->is_guest
Definitions
sources/minikernel.php
- Find whether the current member is a guest.(Always true in minikernel).
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $member_id | ?MEMBER | No | No | Null | N/A | N/A | Member ID to check (null: current user) |
Returns
- Whether the current member is a guest
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find whether the current member is a guest.(Always true in minikernel).
*
* @param ?MEMBER $member_id Member ID to check (null: current user)
* @return boolean Whether the current member is a guest
*/
function is_guest(int $member_id = null) : bool
* Find whether the current member is a guest.(Always true in minikernel).
*
* @param ?MEMBER $member_id Member ID to check (null: current user)
* @return boolean Whether the current member is a guest
*/
function is_guest(int $member_id = null) : bool
sources/users.php
- Find whether the current member is a guest.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $member_id | ?MEMBER | No | No | Null | N/A | N/A | Member ID to check (null: current user) |
| $quick_only | boolean | No | No | False | N/A | N/A | Whether to just do a quick check, don't establish new sessions |
Returns
- Whether the current member is a guest
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find whether the current member is a guest.
*
* @param ?MEMBER $member_id Member ID to check (null: current user)
* @param boolean $quick_only Whether to just do a quick check, don't establish new sessions
* @return boolean Whether the current member is a guest
*/
function is_guest(?int $member_id = null, bool $quick_only = false) : bool
* Find whether the current member is a guest.
*
* @param ?MEMBER $member_id Member ID to check (null: current user)
* @param boolean $quick_only Whether to just do a quick check, don't establish new sessions
* @return boolean Whether the current member is a guest
*/
function is_guest(?int $member_id = null, bool $quick_only = false) : bool

