Documentation

PrivilegeFile
in package

PrivilegeFile class.

Table of Contents

$usersFile  : mixed
$usersFileCache  : mixed
createUserPrivilegesFile()  : mixed
Creates a file with all the user, user-role,user-profile, user-groups informations.
createUsersFile()  : mixed
Create users privileges file.
getUser()  : array<string|int, mixed>
get general users privileges file.

Properties

$usersFile

protected static mixed $usersFile = 'user_privileges/users.php'

$usersFileCache

protected static mixed $usersFileCache = false

Methods

createUserPrivilegesFile()

Creates a file with all the user, user-role,user-profile, user-groups informations.

public static createUserPrivilegesFile(int $userId) : mixed
Parameters
$userId : int
Return values
mixed

createUsersFile()

Create users privileges file.

public static createUsersFile() : mixed
Return values
mixed

getUser()

get general users privileges file.

public static getUser(string $type) : array<string|int, mixed>
Parameters
$type : string
Return values
array<string|int, mixed>

        

Search results