Session
extends RowGateway
in package
implements
SessionEntityInterface
Row Definition for session
Tags
Interfaces, Classes, Traits and Enums
- SessionEntityInterface
- Interface for representing a session row.
Table of Contents
- $created : string
- $data : string
- $id : int
- $last_used : int
- $session_id : string|null
- __construct() : mixed
- Constructor
- getData() : string|null
- Get session data.
- getId() : int
- Id getter
- getLastUsed() : int
- Get time when the session was last used.
- getPrimaryKeyColumn() : array<string|int, mixed>
- Retrieve primary key information.
- setCreated() : SessionEntityInterface
- Created setter.
- setData() : SessionEntityInterface
- Session data setter.
- setLastUsed() : SessionEntityInterface
- Set time the session is last used.
- setSessionId() : SessionEntityInterface
- Session Id setter
Properties
$created
public
string
$created
$data
public
string
$data
$id
public
int
$id
$last_used
public
int
$last_used
$session_id
public
string|null
$session_id
Methods
__construct()
Constructor
public
__construct(Adapter $adapter) : mixed
Parameters
- $adapter : Adapter
-
Database adapter
Return values
mixed —getData()
Get session data.
public
getData() : string|null
Return values
string|null —getId()
Id getter
public
getId() : int
Return values
int —getLastUsed()
Get time when the session was last used.
public
getLastUsed() : int
Return values
int —getPrimaryKeyColumn()
Retrieve primary key information.
public
getPrimaryKeyColumn() : array<string|int, mixed>
Return values
array<string|int, mixed> —setCreated()
Created setter.
public
setCreated(DateTime $dateTime) : SessionEntityInterface
Parameters
- $dateTime : DateTime
-
Created date
Return values
SessionEntityInterface —setData()
Session data setter.
public
setData(string|null $data) : SessionEntityInterface
Parameters
- $data : string|null
-
Session data.
Return values
SessionEntityInterface —setLastUsed()
Set time the session is last used.
public
setLastUsed(int $lastUsed) : SessionEntityInterface
Parameters
- $lastUsed : int
-
Time last used
Return values
SessionEntityInterface —setSessionId()
Session Id setter
public
setSessionId(string|null $sid) : SessionEntityInterface
Parameters
- $sid : string|null
-
Session Id.