NextDom\Helpers\AuthentificationHelper
Class AuthentificationHelper
Synopsis
class AuthentificationHelper
{
- // members
- private static bool $connectedState = false;
- private static bool $connectedAdminState = false;
- private static array $rightsCache = ;
- // methods
- public static void init()
- public static bool isConnected()
- public static bool loginByHash()
- public static void logout()
- public static bool isConnectedWithRights()
- public static bool login()
- public static bool isConnectedOrFail()
- public static bool isConnectedAsAdminOrFail()
- public static bool isConnectedAsAdmin()
- public static bool isInDeveloperMode()
Members
private
- $connectedAdminState — NextDom\Helpers\bool
- $connectedState — NextDom\Helpers\bool
- $rightsCache — array
Methods
public
- init()
- isConnected() — Get the status of the user login
- isConnectedAsAdmin() — Get the login status of the user as an administrator
- isConnectedAsAdminOrFail()
- isConnectedOrFail() — Test if the user is logged in and throws an exception if this is not the case.
- isConnectedWithRights() — Test if user have some rights
- isInDeveloperMode()
- login()
- loginByHash()
- logout() — Disconnect user