Plentymarkets interface documentation
Wizard
Contracts
WizardActionHandler
This interface provides a template for an action handler for Wizards
Namespace
Plenty\Modules\Wizard\Contracts
WizardContainerContract
This interface provides methods to register, get and list all wizards.
Namespace
Plenty\Modules\Wizard\Contracts
Methods
public register($wizardKey, $wizard):void
Register a wizard
Name |
Type |
Description |
|
||
|
public registerFolders($folderClass):void
Register a wizard folder
Name |
Type |
Description |
|
public get($wizardKey, $skipTranslation = false):Plenty\Modules\Wizard\Models\Wizard
WizardDataModifier
This interface provides methods to modify wizard data.
Namespace
Plenty\Modules\Wizard\Contracts
Methods
public modify($parameters):void
Modify a wizard data for a step
Name |
Type |
Description |
|
WizardDataRepositoryContract
This interface provides methods to create, get, list, update and delete wizard data
Namespace
Plenty\Modules\Wizard\Contracts
Methods
public create($wizardKey, $steps = []):void
Creates a new WizardData.
Name |
Type |
Description |
|
||
|
public createDataOption($wizardKey, $data = [], $optionId = "default"):void
Creates a new WizardData option
Name |
Type |
Description |
|
||
|
||
|
public get($wizardKey, $pluginSetHash = ""):void
Get a single WizardData by its ID
Name |
Type |
Description |
|
||
|
public getByOptionId($wizardKey, $optionId = "default"):void
Get a single WizardData for an option ID
Name |
Type |
Description |
|
||
|
public findByWizardKey($wizardKey):void
Name |
Type |
Description |
|
public list($page = 1, $itemsPerPage = 50, $filters = []):array
List all WizardData for current plenty ID.
Name |
Type |
Description |
|
||
|
||
|
public update($wizardKey, $properties):void
Update data for a WizardData
Name |
Type |
Description |
|
||
|
public updateDataOption($wizardKey, $optionId, $data, $stepKey, $skipValidation = false):void
Update data for a WizardData option
Name |
Type |
Description |
|
||
|
||
|
||
|
||
|
public delete($wizardKey):void
Delete a single WizardData by its ID
Name |
Type |
Description |
|
public deleteDataOption($wizardKey, $optionId):void
Delete a single WizardData by its ID
Name |
Type |
Description |
|
||
|
public finalize($wizardKey, $optionId = "default", $data = []):void
Finalize wizard
Name |
Type |
Description |
|
||
|
||
|
public clearCriteria():void
Resets all Criteria filters by creating a new instance of the builder object.
public applyCriteriaFromFilters():void
Applies criteria classes to the current repository.
public setFilters($filters = []):void
Sets the filter array.
Name |
Type |
Description |
|
public getFilters():void
Returns the filter array.
public getConditions():void
Returns a collection of parsed filters as Condition object
public clearFilters():void
Clears the filter array.
WizardDynamicLoader
This interface provides methods to dynamically load data in the wizard ui.
Namespace
Plenty\Modules\Wizard\Contracts
WizardRepositoryContract
This interface provides methods to get and list wizards.
Namespace
Plenty\Modules\Wizard\Contracts
Models
Wizard
The wizard model.
Namespace
Plenty\Modules\Wizard\Models
Name | Type | Description |
---|---|---|
title |
The title |
|
key |
The wizard’s key |
|
settingsHandlerClass |
Settings handler |
|
shortDescription |
The short description |
|
translationKey |
The translation key |
|
deleteConfirmationText |
Delete confirmation Text in deletion overlay |
|
topics |
The topics |
|
steps |
Wizard’s structure |
|
priority |
Wizard’s listing priority in the overview |
|
relevance |
Wizard’s level of relevance |
|
keywords |
Keywords describing the wizard |
Methods
public toArray()
Returns this model as an array.
WizardData
The wizard data model.
Namespace
Plenty\Modules\Wizard\Models
Name | Type | Description |
---|---|---|
uuid |
||
plentyIdHash |
||
wizardKey |
||
data |
||
steps |
Methods
public toArray()
Returns this model as an array.
WizardFolder
The wizard folder.
Namespace
Plenty\Modules\Wizard\Models
Name | Type | Description |
---|---|---|
name |
The name |
|
priority |
The priority |
|
shortDescription |
The short description |
|
parent |
The parent |
Methods
public toArray()
Returns this model as an array.
WizardFormOption
The wizard form option.
Namespace
Plenty\Modules\Wizard\Models
Name | Type | Description |
---|---|---|
name |
The name |
|
placeholder |
The placeholder |
|
caption |
The caption. Only for checkboxValues. |
|
label |
The label |
|
tooltip |
The tooltip |
Methods
public toArray()
Returns this model as an array.
WizardSection
The wizard step section model.
Namespace
Plenty\Modules\Wizard\Models
Name | Type | Description |
---|---|---|
title |
The title |
|
description |
The description |
|
form |
The form |
Methods
public toArray()
Returns this model as an array.
WizardStep
The wizard step model.
Namespace
Plenty\Modules\Wizard\Models
Name | Type | Description |
---|---|---|
title |
The title |
|
description |
The short description |
|
modifierClass |
The modifier class |
|
validationClass |
The validation class |
|
sections |
The sections |
Methods
public toArray()
Returns this model as an array.
Services
DataSources
BaseWizardDataSource
Base data source for wizards
Namespace
Plenty\Modules\Wizard\Services\DataSources
Name | Type | Description |
---|---|---|
wizardKey |
||
dataStructure |
Methods
public setWizardKey($wizardKey):void
Sets the wizard key for this data source
Name |
Type |
Description |
|
public getIdentifiers():array
List of option identifiers
public create($steps = []):array
Create data
Name |
Type |
Description |
|
public get():array
Get data
public update($properties = []):void
Update data
Name |
Type |
Description |
|
public delete():void
Delete data
public createDataOption($data = [], $optionId = "default"):array
Create data option
Name |
Type |
Description |
|
||
|
public getByOptionId($optionId = "default"):array
Get data option by its option ID
Name |
Type |
Description |
|
public updateDataOption($optionId = "default", $data = [], $stepKey = ""):array
Update data option
Name |
Type |
Description |
|
||
|
||
|
public deleteDataOption($optionId):void
Delete data option
Name |
Type |
Description |
|
public finalize($optionId, $data = []):void
Name |
Type |
Description |
|
||
|