Landing extends Platform implements IRestriction
Class Landing
Table of Contents
Interfaces
Constants
- CODE_DELIMITER = '_'
- LANDING_STORE_CHATS = 'chats'
- LANDING_STORE_CLOTHES = 'clothes'
- LANDING_STORE_INSTAGRAM = 'instagram'
- LANDING_STORE_MINI_CATALOG = 'mini-catalog'
- LANDING_STORE_MINI_ONE_ELEMENT = 'mini-one-element'
- LANDING_STORE_STORE_V3 = 'store_v3'
- LINK_TYPE_PUBLIC_DETAIL_ORDER = 'PUBLIC_DETAIL_ORDER'
- LINK_TYPE_PUBLIC_FEEDBACK = 'PUBLIC_FEEDBACK'
- TRADING_PLATFORM_CODE = 'landing'
Methods
- addLogRecord() : bool
- getAnalyticCode() : string
- getCode() : string
- getCodeBySiteId() : string
- getExternalLink() : string
- getField() : mixed
- getId() : mixed
- getInfo() : array<string|int, mixed>
- getInstanceByCode() : Platform
- getRealName() : string
- getSettings() : array<string|int, mixed>
- install() : bool|int
- Installs platform
- isActive() : bool
- isInstalled() : bool
- isOfType() : bool
- onAfterUpdateShipment() : mixed
- onLandingBeforeSiteRecycle() : mixed
- onLandingSiteAdd() : mixed
- onLandingSiteDelete() : mixed
- onLandingSiteUpdate() : mixed
- resetSettings() : mixed
- saveSettings() : bool
- setActive() : bool
- Sets the platform active.
- setShipmentTableOnAfterUpdateEvent() : void
- uninstall() : bool
- unsetActive() : bool
- Sets the platform inactive.
Constants
CODE_DELIMITER
public
mixed
CODE_DELIMITER
= '_'
LANDING_STORE_CHATS
public
mixed
LANDING_STORE_CHATS
= 'chats'
LANDING_STORE_CLOTHES
public
mixed
LANDING_STORE_CLOTHES
= 'clothes'
LANDING_STORE_INSTAGRAM
public
mixed
LANDING_STORE_INSTAGRAM
= 'instagram'
LANDING_STORE_MINI_CATALOG
public
mixed
LANDING_STORE_MINI_CATALOG
= 'mini-catalog'
LANDING_STORE_MINI_ONE_ELEMENT
public
mixed
LANDING_STORE_MINI_ONE_ELEMENT
= 'mini-one-element'
LANDING_STORE_STORE_V3
public
mixed
LANDING_STORE_STORE_V3
= 'store_v3'
LINK_TYPE_PUBLIC_DETAIL_ORDER
public
mixed
LINK_TYPE_PUBLIC_DETAIL_ORDER
= 'PUBLIC_DETAIL_ORDER'
LINK_TYPE_PUBLIC_FEEDBACK
public
mixed
LINK_TYPE_PUBLIC_FEEDBACK
= 'PUBLIC_FEEDBACK'
TRADING_PLATFORM_CODE
public
mixed
TRADING_PLATFORM_CODE
= 'landing'
Methods
addLogRecord()
public
addLogRecord(int $level, string $type, string $itemId, string $description) : bool
Parameters
- $level : int
-
The level of event.
- $type : string
-
Type of event.
- $itemId : string
-
Item idenifyer.
- $description : string
-
Description of event.
Return values
bool —Success or not.
getAnalyticCode()
public
getAnalyticCode() : string
Return values
string —Platform code.
getCode()
public
getCode() : string
Return values
string —Platform code.
getCodeBySiteId()
public
static getCodeBySiteId(mixed $id) : string
Parameters
- $id : mixed
Return values
stringgetExternalLink()
public
getExternalLink(mixed $type, Order $order) : string
Parameters
- $type : mixed
- $order : Order
Tags
Return values
stringgetField()
public
getField(mixed $fieldName) : mixed
Parameters
- $fieldName : mixed
getId()
public
getId() : mixed
Return values
mixed —Id of the current trading platform.
getInfo()
public
getInfo() : array<string|int, mixed>
Return values
array<string|int, mixed>getInstanceByCode()
public
static getInstanceByCode(mixed $code) : Platform
Parameters
- $code : mixed
Tags
Return values
PlatformgetRealName()
public
getRealName() : string
Return values
stringgetSettings()
public
getSettings() : array<string|int, mixed>
Return values
array<string|int, mixed> —Platform settings.
install()
Installs platform
public
install() : bool|int
Return values
bool|intisActive()
public
isActive() : bool
Return values
boolisInstalled()
public
isInstalled() : bool
Return values
bool —Is platfom installed?.
isOfType()
public
isOfType(string $type) : bool
Parameters
- $type : string
Return values
boolonAfterUpdateShipment()
public
static onAfterUpdateShipment(Event $event, array<string|int, mixed> $additional) : mixed
Parameters
- $event : Event
- $additional : array<string|int, mixed>
onLandingBeforeSiteRecycle()
public
static onLandingBeforeSiteRecycle(Event $event) : mixed
Parameters
- $event : Event
onLandingSiteAdd()
public
static onLandingSiteAdd(Event $event) : mixed
Parameters
- $event : Event
onLandingSiteDelete()
public
static onLandingSiteDelete(Event $event) : mixed
Parameters
- $event : Event
onLandingSiteUpdate()
public
static onLandingSiteUpdate(Event $event) : mixed
Parameters
- $event : Event
resetSettings()
public
resetSettings(mixed $siteId) : mixed
Parameters
- $siteId : mixed
saveSettings()
public
saveSettings(array<string|int, mixed> $settings) : bool
Parameters
- $settings : array<string|int, mixed>
-
Platform settings.
Return values
bool —Is success?.
setActive()
Sets the platform active.
public
setActive() : bool
Return values
boolsetShipmentTableOnAfterUpdateEvent()
public
static setShipmentTableOnAfterUpdateEvent() : void
uninstall()
public
uninstall() : bool
Return values
bool —Is deletion successful?.
unsetActive()
Sets the platform inactive.
public
unsetActive() : bool