yii2-workflow Class Reference
  • Namespace
  • Class

Namespaces

  • raoul2000
    • workflow
      • actions
      • base
      • events
      • helpers
      • source
        • file
      • validation

Classes

  • SimpleWorkflowBehavior
  • Status
  • StatusIdConverter
  • Transition
  • Workflow
  • WorkflowBaseObject
  • WorkflowException
  • WorkflowValidationException

Interfaces

  • IStatusAccessor
  • IStatusIdConverter
  • StatusInterface
  • TransitionInterface
  • WorkflowInterface

Interface IStatusAccessor

Interface for status accessor component.

Namespace: raoul2000\workflow\base
Located at base/IStatusAccessor.php

Methods summary

public string
# readStatus( yii\db\BaseActiveRecord $model )

This method is invoked each time a status value must be read.

This method is invoked each time a status value must be read.

Parameters

$model

Returns

string
the status Id
public
# updateStatus( yii\db\BaseActiveRecord $model, raoul2000\workflow\base\Status $status = null )

This method is invoked each time a status value must be updated.

This method is invoked each time a status value must be updated.

Updating a status value differs from actually saving the status in persistent storage (the database).

Parameters

$model
$status
public
# commitStatus( yii\db\BaseActiveRecord $model )

This method is invoked when the status needs to be saved.

This method is invoked when the status needs to be saved.

Parameters

$model
yii2-workflow Class Reference API documentation generated by ApiGen