Pionia Core

ContextUserObject
in package

This is the context object holding the current session

Tags
author

Jet - ezrajet9@gmail.com

Table of Contents

Properties

$authenticated  : bool
Turn this to true if the user is authenticated
$authExtra  : array<string|int, mixed>|null
this holds any other data about the logged-in session holder, can be user to hold user domain, user role etc
$permissions  : array<string|int, mixed>|null
Set this to the user's object
$user  : object
You can store here your user object

Properties

$authenticated

Turn this to true if the user is authenticated

public bool $authenticated = false

$authExtra

this holds any other data about the logged-in session holder, can be user to hold user domain, user role etc

public array<string|int, mixed>|null $authExtra = null

$permissions

Set this to the user's object

public array<string|int, mixed>|null $permissions

        
On this page

Search results