Documentation

AccessHandler
in package

Manage access of user for ressources

Table of Contents

Properties

$logFile  : string

Methods

__construct()  : mixed
Construct an AccessHandler
getPermissionsUtilisateur()  : int
Get the code acces of an user
verifyAccess()  : void
Verify if the actual user can access a ressource by comparing his access's level

Properties

Methods

__construct()

Construct an AccessHandler

public __construct(string $aLogFile) : mixed
Parameters
$aLogFile : string

the path to the logs for the router

getPermissionsUtilisateur()

Get the code acces of an user

public static getPermissionsUtilisateur() : int
Return values
int

the acces code of user

verifyAccess()

Verify if the actual user can access a ressource by comparing his access's level

public verifyAccess(Session $session, int $codeAcces) : void
Parameters
$session : Session
$codeAcces : int

to have to pass

Tags
throws
ErrorHandler

if false

Return values
void

Return http code 200, or ErrorHandler object


        
On this page

Search results