SwimmPair-Www v1.0
PHP Model of SwimmPair web application
Loading...
Searching...
No Matches
UserRights Class Reference
Collaboration diagram for UserRights:
Collaboration graph

Static Public Member Functions

static getRightsById ($value)
 

Public Attributes

const SuperUser = 2
 
const VedouciKlubu = 1
 
const Rozhodci = 0
 

Detailed Description

UserRights has roles with rights numbers in descending order. The larger the number the higher the access. It can also return name of the role based on its number. User can access page of same and lower rights.

Member Function Documentation

◆ getRightsById()

static UserRights::getRightsById (   $value)
static

Returns name of the role based on its number from this UserRights enumberation class.

Parameters
int$value
Exceptions
RuntimeException
Returns
string

The documentation for this class was generated from the following file: