Function __global->get_member
Definitions
sources/users.php
- Get the ID of the currently active member.It see's if the session exists / cookie is valid -- and gets the member ID accordingly.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: int
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $quick_only | boolean | No | No | False | N/A | N/A | Whether to just do a quick check, don't establish new sessions |
Returns
- The member requesting this web page (possibly the guest member - which strictly speaking, is not a member)
- Type: MEMBER
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get the ID of the currently active member.It see's if the session exists / cookie is valid -- and gets the member ID accordingly.
*
* @param boolean $quick_only Whether to just do a quick check, don't establish new sessions
* @return MEMBER The member requesting this web page (possibly the guest member - which strictly speaking, is not a member)
*/
function get_member(bool $quick_only = false) : int
* Get the ID of the currently active member.It see's if the session exists / cookie is valid -- and gets the member ID accordingly.
*
* @param boolean $quick_only Whether to just do a quick check, don't establish new sessions
* @return MEMBER The member requesting this web page (possibly the guest member - which strictly speaking, is not a member)
*/
function get_member(bool $quick_only = false) : int
