elFinderSession
in package
implements
elFinderSessionInterface
elFinder - file manager for web.
Session Wrapper Class.
Tags
Table of Contents
Interfaces
- elFinderSessionInterface
- elFinder - file manager for web.
Properties
- $base64encode : bool
- Is enabled base64encode
- $fixCookieRegist : bool
- To fix PHP bug that duplicate Set-Cookie header to be sent
- $keys : array<string|int, mixed>
- Array of session keys of this instance
- $opts : array<string|int, mixed>
- Default options array
- $started : bool
- A flag of session started
Methods
- __construct() : self
- Constractor
- close() : self
- Session write & close
- get() : mixed
- Get session data This method must be equipped with an automatic start / close.
- remove() : self
- Get session data
- set() : self
- Set session data This method must be equipped with an automatic start / close.
- start() : self
- Session start
- decodeData() : bool|mixed|string|null
- base64 decode of session val
- encodeData() : string
- base64 encode for session val
- getSessionRef() : mixed|null
- Get variable reference of $_SESSION
- session_start_error() : mixed
- sessioin error handler (Only for suppression of error at session start)
Properties
$base64encode
Is enabled base64encode
protected
bool
$base64encode
= \false
$fixCookieRegist
To fix PHP bug that duplicate Set-Cookie header to be sent
protected
bool
$fixCookieRegist
= \false
Tags
$keys
Array of session keys of this instance
protected
array<string|int, mixed>
$keys
= array()
$opts
Default options array
protected
array<string|int, mixed>
$opts
= array('base64encode' => \false, 'keys' => array('default' => 'elFinderCaches', 'netvolume' => 'elFinderNetVolumes'), 'cookieParams' => array())
$started
A flag of session started
protected
bool
$started
= \false
Methods
__construct()
Constractor
public
__construct(array<string|int, mixed> $opts) : self
Parameters
- $opts : array<string|int, mixed>
-
The options
Return values
self —Instanse of this class
close()
Session write & close
public
close() : self
Return values
selfget()
Get session data This method must be equipped with an automatic start / close.
public
get(mixed $key[, mixed $empty = null ]) : mixed
Parameters
- $key : mixed
-
Target key
- $empty : mixed = null
-
Return value of if session target key does not exist
remove()
Get session data
public
remove(mixed $key) : self
Parameters
- $key : mixed
-
Target key
Return values
selfset()
Set session data This method must be equipped with an automatic start / close.
public
set(mixed $key, mixed $data) : self
Parameters
- $key : mixed
-
Target key
- $data : mixed
-
Value
Return values
selfstart()
Session start
public
start() : self
Return values
selfdecodeData()
base64 decode of session val
protected
decodeData( $data) : bool|mixed|string|null
Parameters
Return values
bool|mixed|string|nullencodeData()
base64 encode for session val
protected
encodeData( $data) : string
Parameters
Return values
stringgetSessionRef()
Get variable reference of $_SESSION
protected
& getSessionRef(string $key) : mixed|null
Parameters
- $key : string
-
key of $_SESSION array
Return values
mixed|nullsession_start_error()
sessioin error handler (Only for suppression of error at session start)
protected
session_start_error( $errno, $errstr) : mixed