Ka Extensions for OpenCart 4

This documentation applies to Ka Extensions for OpenCart 4.x only. It is not compatible with OpenCart 3.

TraitSession

Provides functions for controller/model to generate unique session variables within a class.

Table of Contents

Methods

getSession()  : mixed
Returns a reference to a value in the session area of the current class; null is created if missing.
setSession()  : mixed
Stores a value in the session area of the current class.

Methods

getSession()

Returns a reference to a value in the session area of the current class; null is created if missing.

protected & getSession(mixed $key) : mixed

$key — value key.

Parameters
$key : mixed
Return values
mixed —

Reference to the value.

setSession()

Stores a value in the session area of the current class.

protected setSession(mixed $key, mixed $value) : mixed

$key — value key. $value — value.

Parameters
$key : mixed
$value : mixed

        
On this page

Search results