Session
extends Component
in package
implements
ISession
FinalYes
Tags
Table of Contents
Interfaces
Properties
- $domain : string|null
- $handler : ISessionHandler
- $id : string
- The id of this session.
- $kind : string
- $user : IUser
- $hashCode : int
- $hashCounter : int
- $id_prefix : string
- $instance : Session
Methods
- __call() : mixed
- __callStatic() : mixed
- __construct() : mixed
- __destruct() : mixed
- __get() : mixed
- close() : mixed
- create() : Session
- destroy() : bool
- extends() : bool
- get() : mixed
- getAll() : array<string|int, mixed>
- getDomain() : string|null
- getExpires() : int
- getHandler() : ISessionHandler
- getId() : string
- getIdPrefix() : string
- getKind() : string
- getName() : string
- getReflection() : ReflectionClass
- remove() : mixed
- set() : mixed
- setExpires() : void
- setIdPrefix() : void
- init() : mixed
- setId() : mixed
- setDomain() : void
- setHandler() : mixed
- setKind() : mixed
- start() : void
Properties
$domain
protected
string|null
$domain
= null
$handler
protected
ISessionHandler
$handler
$id
The id of this session.
protected
string
$id
$kind
protected
string
$kind
$user
protected
IUser
$user
$hashCode
private
int
$hashCode
$hashCounter
private
static int
$hashCounter
= 0
$id_prefix
private
string
$id_prefix
= 'WG'
$instance
private
static Session
$instance
Methods
__call()
public
__call(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
Tags
__callStatic()
public
static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : mixed
- $arguments : array<string|int, mixed>
__construct()
public
__construct(array<string|int, mixed> $options) : mixed
Parameters
- $options : array<string|int, mixed>
-
An array of options to use in creating the session
__destruct()
public
__destruct() : mixed
__get()
public
__get(string $property) : mixed
Parameters
- $property : string
close()
public
close() : mixed
Tags
create()
public
static create(array<string|int, mixed> $options) : Session
Parameters
- $options : array<string|int, mixed>
Return values
Sessiondestroy()
public
destroy() : bool
Return values
boolextends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolget()
public
get(mixed $key) : mixed
Parameters
- $key : mixed
getAll()
public
getAll() : array<string|int, mixed>
Return values
array<string|int, mixed>getDomain()
public
getDomain() : string|null
Return values
string|nullgetExpires()
public
getExpires() : int
Return values
intgetHandler()
public
getHandler() : ISessionHandler
Tags
Return values
ISessionHandlergetId()
public
getId() : string
Return values
stringgetIdPrefix()
public
getIdPrefix() : string
Return values
stringgetKind()
public
getKind() : string
Return values
stringgetName()
public
getName() : string
Tags
Return values
stringgetReflection()
public
getReflection() : ReflectionClass
Return values
ReflectionClassremove()
public
remove(string $key) : mixed
Parameters
- $key : string
set()
public
set(string $key, mixed $value) : mixed
Parameters
- $key : string
- $value : mixed
setExpires()
public
setExpires(int $expires) : void
Parameters
- $expires : int
setIdPrefix()
public
setIdPrefix(string $id_prefix) : void
Parameters
- $id_prefix : string
init()
protected
init() : mixed
setId()
protected
setId(string $id) : mixed
Parameters
- $id : string
setDomain()
private
setDomain(string $domain) : void
Parameters
- $domain : string
setHandler()
private
setHandler(ISessionHandler $handler) : mixed
Parameters
- $handler : ISessionHandler
setKind()
private
setKind(string $kind) : mixed
Parameters
- $kind : string
start()
private
start() : void