class UserFormsUpgradeService (View source)

Service to support upgrade of userforms module

Properties

protected bool $quiet

Methods

public
run()

No description

protected
upgradeField(EditableFormField $field)

Migrate a versioned field in all stages

protected
upgradeFieldInStage(EditableFormField $field, stage $stage)

Migrate a versioned field in a single stage

protected
migrateRules(EditableFormField $field, string $stage)

Migrate custom rules for the given field

protected
migrateCustomSettings(EditableFormField $field, string $stage)

Migrate custom settings for the given field

protected
findOrCreateRule(EditableFormField $field, string $stage, string $conditionOption, string $display, string $conditionFieldName, string $value)

Create or find an existing field with the matched specification

public
log($message)

No description

public
setQuiet(bool $quiet)

Set if this service should be quiet

public
getQuiet()

No description

Details

run()

No description

protected upgradeField(EditableFormField $field)

Migrate a versioned field in all stages

Parameters

EditableFormField $field

protected upgradeFieldInStage(EditableFormField $field, stage $stage)

Migrate a versioned field in a single stage

Parameters

EditableFormField $field
stage $stage

protected migrateRules(EditableFormField $field, string $stage)

Migrate custom rules for the given field

Parameters

EditableFormField $field
string $stage

protected migrateCustomSettings(EditableFormField $field, string $stage)

Migrate custom settings for the given field

Parameters

EditableFormField $field
string $stage

protected EditableCustomRule findOrCreateRule(EditableFormField $field, string $stage, string $conditionOption, string $display, string $conditionFieldName, string $value)

Create or find an existing field with the matched specification

Parameters

EditableFormField $field
string $stage
string $conditionOption
string $display
string $conditionFieldName
string $value

Return Value

EditableCustomRule

log($message)

No description

Parameters

$message

setQuiet(bool $quiet)

Set if this service should be quiet

Parameters

bool $quiet

getQuiet()

No description