UserRole
in package
Class UserRole.
Table of Contents
Constants
- ADMIN_USER = self::ADMIN_USER_ID
- ADMIN_USER_ID = 2
- BANNED_USER = self::BANNED_USER_ID
- BANNED_USER_ID = 6
- GUEST_USER = self::GUEST_USER_ID
- GUEST_USER_ID = 5
- LEVEL_ADMINISTRATOR = [self::SUPER_ADMIN_USER, self::ADMIN_USER]
- Admin role level. Per app will assign permissions to this role list.
- LEVEL_BANNED = [self::SUPER_ADMIN_USER, self::ADMIN_USER, self::STAFF_USER, self::NORMAL_USER, self::GUEST_USER, self::BANNED_USER]
- Banned user role level.
- LEVEL_GUEST = [self::SUPER_ADMIN_USER, self::ADMIN_USER, self::STAFF_USER, self::NORMAL_USER, self::PAGE_USER, self::GUEST_USER]
- Guest role level.
- LEVEL_PAGE = [self::SUPER_ADMIN_USER, self::ADMIN_USER, self::STAFF_USER, self::NORMAL_USER, self::PAGE_USER]
- LEVEL_REGISTERED = [self::SUPER_ADMIN_USER, self::ADMIN_USER, self::STAFF_USER, self::NORMAL_USER]
- Registered user role level.
- LEVEL_STAFF = [self::SUPER_ADMIN_USER, self::ADMIN_USER, self::STAFF_USER]
- Staff role level.
- NORMAL_USER = self::NORMAL_USER_ID
- NORMAL_USER_ID = 4
- PAGE_USER = self::PAGE_USER_ID
- PAGE_USER_ID = 7
- ROLES = [self::SUPER_ADMIN_USER_ID => 'Super Administrator', self::ADMIN_USER_ID => 'Administrator', self::STAFF_USER_ID => 'Staff', self::NORMAL_USER_ID => 'Registered User', self::GUEST_USER_ID => 'Guest User', self::BANNED_USER_ID => 'Banned User', self::PAGE_USER_ID => 'Page User']
- Define default roles when install metafox:install.
- STAFF_USER = self::STAFF_USER_ID
- STAFF_USER_ID = 3
- SUPER_ADMIN_USER = self::SUPER_ADMIN_USER_ID
- SUPER_ADMIN_USER_ID = 1
Constants
ADMIN_USER
public
string
ADMIN_USER
= self::ADMIN_USER_ID
ADMIN_USER_ID
public
int
ADMIN_USER_ID
= 2
BANNED_USER
public
string
BANNED_USER
= self::BANNED_USER_ID
BANNED_USER_ID
public
int
BANNED_USER_ID
= 6
GUEST_USER
public
string
GUEST_USER
= self::GUEST_USER_ID
GUEST_USER_ID
public
int
GUEST_USER_ID
= 5
LEVEL_ADMINISTRATOR
Admin role level. Per app will assign permissions to this role list.
public
array<string|int, string>
LEVEL_ADMINISTRATOR
= [self::SUPER_ADMIN_USER, self::ADMIN_USER]
LEVEL_BANNED
Banned user role level.
public
array<string|int, string>
LEVEL_BANNED
= [self::SUPER_ADMIN_USER, self::ADMIN_USER, self::STAFF_USER, self::NORMAL_USER, self::GUEST_USER, self::BANNED_USER]
LEVEL_GUEST
Guest role level.
public
array<string|int, string>
LEVEL_GUEST
= [self::SUPER_ADMIN_USER, self::ADMIN_USER, self::STAFF_USER, self::NORMAL_USER, self::PAGE_USER, self::GUEST_USER]
LEVEL_PAGE
public
array<string|int, string>
LEVEL_PAGE
= [self::SUPER_ADMIN_USER, self::ADMIN_USER, self::STAFF_USER, self::NORMAL_USER, self::PAGE_USER]
LEVEL_REGISTERED
Registered user role level.
public
array<string|int, string>
LEVEL_REGISTERED
= [self::SUPER_ADMIN_USER, self::ADMIN_USER, self::STAFF_USER, self::NORMAL_USER]
LEVEL_STAFF
Staff role level.
public
array<string|int, string>
LEVEL_STAFF
= [self::SUPER_ADMIN_USER, self::ADMIN_USER, self::STAFF_USER]
NORMAL_USER
public
string
NORMAL_USER
= self::NORMAL_USER_ID
NORMAL_USER_ID
public
int
NORMAL_USER_ID
= 4
PAGE_USER
public
mixed
PAGE_USER
= self::PAGE_USER_ID
PAGE_USER_ID
public
int
PAGE_USER_ID
= 7
ROLES
Define default roles when install metafox:install.
public
array<string|int, string>
ROLES
= [self::SUPER_ADMIN_USER_ID => 'Super Administrator', self::ADMIN_USER_ID => 'Administrator', self::STAFF_USER_ID => 'Staff', self::NORMAL_USER_ID => 'Registered User', self::GUEST_USER_ID => 'Guest User', self::BANNED_USER_ID => 'Banned User', self::PAGE_USER_ID => 'Page User']
STAFF_USER
public
string
STAFF_USER
= self::STAFF_USER_ID
STAFF_USER_ID
public
int
STAFF_USER_ID
= 3
SUPER_ADMIN_USER
public
string
SUPER_ADMIN_USER
= self::SUPER_ADMIN_USER_ID
SUPER_ADMIN_USER_ID
public
int
SUPER_ADMIN_USER_ID
= 1