com\setasign\Konquadrat\Workflow
Workflow
File: /Konquadrat/src/Workflow/Workflow.php
Class hierarchy
Summary
Methods
- __construct()
- __debugInfo()
- __sleep()
- addMethodResult()
- checkHash()
- fail()
- forceReload()
- getById()
- getCatchedExceptions()
- getCaughtExceptions()
- getCurrentContext()
- getCurrentStep()
- getCurrentStepConfig()
- getEditModeData()
- getError()
- getExtraParams()
- getId()
- getIdByObject()
- getKonquadrat()
- getLanguage()
- getLogger()
- getObjectFinder()
- getObjectManager()
- getObjects()
- getObjectsConfig()
- getOrigin()
- getRenderer()
- getRequest()
- getSession()
- getStepChanges()
- getSteps()
- getTextItems()
- getUsedNextStepButton()
- getUsedPreviousStepButton()
- goBackToStep()
- hasCatchedExceptions()
- hasCaughtExceptions()
- hasError()
- hydrate()
- initStep()
- isEditMode()
- isError()
- output()
- process()
- processData()
- processGoToNextStep()
- processGoToPreviousStep()
- processStepChangesAndCurrentStep()
- processView()
- registerById()
- registerError()
- registerField()
- registerStepValidator()
- reset()
- resolveContext()
- setCurrentContext()
- setData()
- setEditMode()
- setEditModeData()
- setExtraParams()
- setFormAction()
- setOrigin()
- unregisterById()
- unregisterStepValidator()
Constants
DEFAULT_BUTTON_NEXT
DEFAULT_BUTTON_PREVIOUS
RENDERER_SMARTY
RENDERER_TWIG
STATE_NONE
STATE_OBJECTS
STATE_ON_SUBMIT
STATE_VIEW
WORKFLOW_HELPER
WORKFLOW_OBJECT
Properties
$currentContext
protected Workflow::$currentContext = array()
$formAction
protected Workflow::$formAction
$konquadrat
protected Workflow::$konquadrat
$stepChanges
protected null|array{nextStep: string}|array{previousStep: string} Workflow::$stepChanges
$textItems
protected ?array Workflow::$textItems
Memorized text items
Methods
getCatchedExceptions()
WARNING: This method is marked as deprecated!
Use getCaughtExceptions() instead
getError()
public Workflow::getError (
string $name,
string|array|null $context = null
): ?Validator\ValidationErrorstring|array|null $context = null
Returns the error code.
Parameters
- $name : string
- $context : string|array|null
Return Values
Returns null if no error
hasCatchedExceptions()
WARNING: This method is marked as deprecated!
Use hasCaughtExceptions() instead
hydrate()
Parameters
- $konquadrat : \com\setasign\Konquadrat\Konquadrat
- $config : Config\WorkflowInterface
process()
processGoToNextStep()
Parameters
- $usedButton : string
Exceptions
Throws \com\setasign\Konquadrat\Exception
Throws ForceResponseException
processStepChangesAndCurrentStep()
registerError()
public Workflow::registerError (
string $name,
null|string|string[] $context,
null|Validator\ReturnValues|bool|mixed $result,
bool $overwrite = false
): voidnull|string|string[] $context,
null|Validator\ReturnValues|bool|mixed $result,
bool $overwrite = false
Adds the result of a check.
If the check is already defined an exception will be thrown.
Parameters
- $name : string
Name of the check or the field
- $context : null|string|string[]
- $result : null|Validator\ReturnValues|bool|mixed
The result of the check. It will only be an error if $result is false or a ValidationError instance.
- $overwrite : bool
If true - already existing checks will be overwritten instead of throwing an exception.
registerField()
public Workflow::registerField (
string $fieldName,
null|string|string[] $context = null,
?array $allowedValues = null
): stringnull|string|string[] $context = null,
?array $allowedValues = null
Parameters
- $fieldName : string
- $context : null|string|string[]
- $allowedValues : ?array
Return Values
Returns the field id
registerStepValidator()
Parameters
- $validator : Validator\ValidatorInterface
- $context : null|string|string[]
