Plentymarkets interface documentation

Flow

Contracts

UIConfigFormContract

Add fields to config form.

Namespace

Plenty\Modules\Flow\Contracts

Methods
public addDateField($dateField, $key = "key"):void

Add a date field to the config form

Parameters

Name

Type

Description

$dateField

DateField

$key

string

public addTimeField($timeField, $key = "key"):void

Add a time field to the config form

Parameters

Name

Type

Description

$timeField

TimeField

$key

string

public addInputField($inputField, $key = "key"):void

Add an input field to the config form

Parameters

Name

Type

Description

$inputField

InputField

$key

string

public addNumberField($numberField, $key = "key"):void

Add a number input field to the config form

Parameters

Name

Type

Description

$numberField

NumberField

$key

string

public addDoubleField($doubleField, $key = "key"):void

Add an double input field to the config form

Parameters

Name

Type

Description

$doubleField

DoubleField

$key

string

public addCheckboxField($checkboxField, $key = "key"):void

Add a checkbox field to the config form

Parameters

Name

Type

Description

$checkboxField

CheckboxField

$key

string

public addSelectboxField($selectboxField, $key = "key"):void

Add a selectbox field to the config form

Parameters

Name

Type

Description

$selectboxField

SelectboxField

$key

string

public addCheckboxGroupField($checkboxGroupField, $key = "key"):void

Add a checkboxGroup field to the config form

Parameters

Name

Type

Description

$checkboxGroupField

CheckboxGroupField

$key

string

public addHyperlinkField($hyperlinkField, $key = "key"):void

Add a hyperlink field to the config form

Parameters

Name

Type

Description

$hyperlinkField

HyperlinkField

$key

string

public addTextAreaField($textAreaField, $key = "key"):void

Add a text area field to the config form

Parameters

Name

Type

Description

$textAreaField

TextAreaField

$key

string

public getConfigFields():array

Get the list with the config fields

DataModels

ConfigForm

CheckboxField

The checkbox field model.

Namespace

Plenty\Modules\Flow\DataModels\ConfigForm

Methods
public toArray()

Returns this model as an array.

CheckboxGroupField

The checkbox group field model.

Namespace

Plenty\Modules\Flow\DataModels\ConfigForm

Properties
Name Type Description

selectBoxValues

array

The checkbox values of the field

formGroup

string

Group of fields with a shared set of values

formGroupValues

array

Shared set of values of the form group

Methods
public toArray()

Returns this model as an array.

CheckboxValue

The checkbox value field model.

Namespace

Plenty\Modules\Flow\DataModels\ConfigForm

Properties
Name Type Description

caption

string

The name of the field

value

string

The label of the field

translateCaption

bool

The option to translate caption, default value is true

Methods
public toArray()

Returns this model as an array.

DateField

The date field model.

Namespace

Plenty\Modules\Flow\DataModels\ConfigForm

Properties
Name Type Description

value

The value of the field

Methods
public toArray()

Returns this model as an array.

DoubleField

The input field model.

Namespace

Plenty\Modules\Flow\DataModels\ConfigForm

Methods
public toArray()

Returns this model as an array.

FormField

The form field model.

Namespace

Plenty\Modules\Flow\DataModels\ConfigForm

Properties
Name Type Description

name

string

The name of the field

label

string

The label of the field

value

string

The value of the field

type

string

The type of the field

isVisible

bool

The visibility of the form on the config form

isRequired

bool

The requirement of the form on the config form

condition

string

The condition for visibility of the form on the config form

effectedFields

array

Fields that will be effected on change

Methods
public toArray()

Returns this model as an array.

HyperlinkField

The hyperlink field model.

Namespace

Plenty\Modules\Flow\DataModels\ConfigForm

Properties
Name Type Description

url

string

The url of the field

Methods
public toArray()

Returns this model as an array.

InputField

The input field model.

Namespace

Plenty\Modules\Flow\DataModels\ConfigForm

Methods
public toArray()

Returns this model as an array.

NumberField

The input field model.

Namespace

Plenty\Modules\Flow\DataModels\ConfigForm

Methods
public toArray()

Returns this model as an array.

SelectboxField

The selectbox field model.

Namespace

Plenty\Modules\Flow\DataModels\ConfigForm

Properties
Name Type Description

selectBoxValues

array

The selectbox values of the field

Methods
public toArray()

Returns this model as an array.

SelectboxValue

The selectbox value model.

Namespace

Plenty\Modules\Flow\DataModels\ConfigForm

Properties
Name Type Description

caption

string

The name of the field

value

string

The label of the field

translateCaption

bool

The option to translate caption, default value is true

Methods
public toArray()

Returns this model as an array.

TextAreaField

The text area field model.

Namespace

Plenty\Modules\Flow\DataModels\ConfigForm

Methods
public toArray()

Returns this model as an array.

TimeField

The time field model.

Namespace

Plenty\Modules\Flow\DataModels\ConfigForm

Methods
public toArray()

Returns this model as an array.

Definitions

Contracts

FilterDefinitionContract

Flow filter

Namespace

Plenty\Modules\Flow\Filters\Definitions\Contracts

Methods
public getIdentifier():string
public getName():string
public getDescription():string
public getUIConfigFields():array
public getRequiredInputTypes():array
public getOperators():array
public getAvailabilities():array
public performFilter($inputs, $filterField, $extraParams = []):bool
Parameters

Name

Type

Description

$inputs

array

$filterField

array

$extraParams

array

public searchCriteria():string
public searchCriteriaValue($value):void
Parameters

Name

Type

Description

$value

public addOperators($configForm, $key = "key"):Plenty\Modules\Flow\Contracts\UIConfigFormContract
Return type: UIConfigFormContract
Parameters

Name

Type

Description

$configForm

UIConfigFormContract

$key

string

public validateConfigFields($configFields):void
Parameters

Name

Type

Description

$configFields

array

public validateInputs($inputs):void
Parameters

Name

Type

Description

$inputs

public mapFilterFields($filterField):void
Parameters

Name

Type

Description

$filterField

StepActionDefinitionContract

Flow step action

Namespace

Plenty\Modules\Flow\StepActions\Definitions\Contracts

Methods
public getIdentifier():string
public getPath():string
public getPathIcon():string
public getName():string
public getIcon():string
public getDescription():string
public getUIConfigFields():array
public getRequiredInputTypes():array
public getProvidedOutputTypes():array
public performTask($inputs, $configFields, $filter = null, $extraParams = []):array
Parameters

Name

Type

Description

$inputs

array

$configFields

array

$filter

$extraParams

array

public validateConfigFields($configFields):void
Parameters

Name

Type

Description

$configFields

array

public validateInputs($inputs):void
Parameters

Name

Type

Description

$inputs

StepControlDefinitionContract

Flow step control

Namespace

Plenty\Modules\Flow\StepControls\Definitions\Contracts

Methods
public getIdentifier():string
public getName():string
public getDescription():string
public getUIConfigFields():array
public getRequiredInputTypes():array
public getProvidedOutputTypes():array
public performTask($inputs, $configFields, $filterField = null):void
Parameters

Name

Type

Description

$inputs

array

$configFields

array

$filterField

public validateConfigFields($configFields):void
Parameters

Name

Type

Description

$configFields

array

public validateInputs($inputs):void
Parameters

Name

Type

Description

$inputs

FlowTriggerDefinitionContract

Flow trigger definition

Namespace

Plenty\Modules\Flow\Triggers\Definitions\Contracts

Methods
public getTriggerType():string
public getTriggerObject():string
public getTriggerIdentifier():string
public getTriggerName():string
public getTriggerDescription():string
public getUIConfigField():array

FlowTriggerPlentyDefinitionContract

Flow trigger plenty definition

Namespace

Plenty\Modules\Flow\Triggers\Definitions\Contracts

Methods
public getAreaName():string
public getAreaGroupName():string
public getTriggerType():string
public getTriggerObject():string
public getTriggerIdentifier():string
public getTriggerName():string
public getTriggerDescription():string
public getUIConfigField():array

FlowTriggerPluginDefinitionContract

Flow trigger plugin Definition

Namespace

Plenty\Modules\Flow\Triggers\Definitions\Contracts

Methods
public getPluginName():string
public getPluginGroupName():string
public getTriggerType():string
public getTriggerObject():string
public getTriggerIdentifier():string
public getTriggerName():string
public getTriggerDescription():string
public getUIConfigField():array

Containers

FlowTriggerDefinitionContainer

The FlowTriggerDefinitionContainer collects and returns multiple flow trigger definitions .

Namespace

Plenty\Modules\Flow\Triggers\Definitions\Containers

Methods
public getRegisteredTriggers():array

Retrieves all registered trigger definitions

public register($triggerDefinition):void

Register new flow trigger definition

Parameters

Name

Type

Description

$triggerDefinition

FlowTriggerDefinitionContract

public getTrigger($identifier):Plenty\Modules\Flow\Triggers\Definitions\Contracts\FlowTriggerDefinitionContract
Return type: FlowTriggerDefinitionContract

Retrieves a trigger definition

Parameters

Name

Type

Description

$identifier

string