CKFinder 3 – PHP Connector Documentation
SessionRoleContext Class Reference
Inheritance diagram for SessionRoleContext:
RoleContextInterface

Public Member Functions

 __construct ($sessionRoleField)
 
 getRole ()
 
 getRole ()
 

Protected Attributes

 $sessionRoleField
 

Detailed Description

The SessionRoleContext class.

SessionRoleContext is used to get the user role from the defined $_SESSION field.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $sessionRoleField)

Sets the $_SESSION field name to use.

Parameters
string$sessionRoleField

Member Function Documentation

◆ getRole()

getRole ( )

Returns the role name of the current user.

Returns
null|string

Implements RoleContextInterface.


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