ZenphotoCMS 1.6.1

elFinderSession
in package
implements elFinderSessionInterface

elFinder - file manager for web.

Session Wrapper Class.

Tags
author

Naoki Sawada

Interfaces, Classes, Traits and Enums

elFinderSessionInterface
elFinder - file manager for web.

Table of Contents

$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
__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

$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())

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
self

get()

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

Return values
mixed

remove()

Get session data

public remove(mixed $key) : self
Parameters
$key : mixed

Target key

Return values
self

set()

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
self

decodeData()

base64 decode of session val

protected decodeData( $data) : bool|mixed|string|null
Parameters
$data :
Return values
bool|mixed|string|null

encodeData()

base64 encode for session val

protected encodeData( $data) : string
Parameters
$data :
Return values
string

getSessionRef()

Get variable reference of $_SESSION

protected & getSessionRef(string $key) : mixed|null
Parameters
$key : string

key of $_SESSION array

Return values
mixed|null

session_start_error()

sessioin error handler (Only for suppression of error at session start)

protected session_start_error( $errno,  $errstr) : mixed
Parameters
$errno :
$errstr :
Return values
mixed

Search results