Visitor
The model for the currently browsing User. Group falls back to whatever group is set as the “Guest Group”.
See Also
Summary
| Visitor | The model for the currently browsing User. Group falls back to whatever group is set as the “Guest Group”. |
| Variables | |
| $id | The ID of the currently visiting “user”. 0 if not logged in. |
| Functions | |
| __construct | Checks if a valid user is logged in. |
| group | Returns the user’s Group or the “Guest Group”. |
| current | Returns a singleton reference to the current visitor. |
group
public function group()
Returns the user’s Group or the “Guest Group”.