Application
in package
This is the Core Application class in the SDK Core package.
All setting/getting operations are done through this class.
Tags
Table of Contents
ECOMMERCE | = 'ecommerce' | |
---|---|---|
LICENSES | = 'licenses' | |
PLUGINS | = 'plugins' | |
get() | Returns the data stored on the given application key id. | : mixed |
getEcommerceLicenses() | : mixed | |
getEcommercePlugins() | : mixed | |
getEcommerceSettings() | : mixed | |
getInstance() | Returns the Application instance. | : Application|null |
getToken() | Returns the application token (JWT) given by the LogiCommerce API. | : string|null |
hasInValidData() | Returns if the application has been initialized and has valid data. | : bool |
refreshToken() | Refresh the application token. | : void |
setToken() | Sets the application token. | : void |
startApplication() | Start ecommerce Application Create cookie with the user identifier | : void |
getLicenses() | : mixed | |
getPlugins() | : mixed | |
getSettings() | : mixed | |
set() | : void | |
setLicenses() | : void | |
setPlugins() | : void | |
setSettings() | : void |
Constants
ECOMMERCE
protected
mixed
ECOMMERCE
= 'ecommerce'
LICENSES
protected
mixed
LICENSES
= 'licenses'
PLUGINS
protected
mixed
PLUGINS
= 'plugins'
Methods
get()
Returns the data stored on the given application key id.
public
get(string $key) : mixed
Parameters
- $key : string
-
Key of the Application::$data you want to get.
Return values
mixed —getEcommerceLicenses()
public
abstract getEcommerceLicenses() : mixed
Return values
mixed —getEcommercePlugins()
public
abstract getEcommercePlugins() : mixed
Return values
mixed —getEcommerceSettings()
public
abstract getEcommerceSettings() : mixed
Return values
mixed —getInstance()
Returns the Application instance.
public
static getInstance() : Application|null
If is not setted, this method will set it.
Return values
Application|null —getToken()
Returns the application token (JWT) given by the LogiCommerce API.
public
getToken() : string|null
Return values
string|null —hasInValidData()
Returns if the application has been initialized and has valid data.
public
hasInValidData() : bool
Return values
bool —refreshToken()
Refresh the application token.
public
refreshToken() : void
Return values
void —setToken()
Sets the application token.
public
setToken() : void
Return values
void —startApplication()
Start ecommerce Application Create cookie with the user identifier
public
startApplication([callable $setConstants = null ]) : void
Parameters
- $setConstants : callable = null
Tags
Return values
void —getLicenses()
protected
abstract getLicenses() : mixed
Return values
mixed —getPlugins()
protected
abstract getPlugins() : mixed
Return values
mixed —getSettings()
protected
abstract getSettings() : mixed
Return values
mixed —set()
protected
set(string $key, mixed $value) : void
Parameters
- $key : string
- $value : mixed
Return values
void —setLicenses()
protected
abstract setLicenses() : void
Return values
void —setPlugins()
protected
abstract setPlugins() : void
Return values
void —setSettings()
protected
abstract setSettings() : void