Workflow
class Workflow
Workflow Class.
Constants
Properties
protected ComponentInterface | $component | The booted component |
|
protected string
Since: 4.0.0
|
$extension | Name of the extension the workflow belong to |
|
protected CMSApplication
Since: 4.0.0
|
$app | Application Object |
|
protected DatabaseDriver
Since: 4.0.0
|
$db | Database Driver |
Methods
Class constructor
Returns the translated condition name, based on the given number
Returns the booted component
Try to load a workflow default stage by category ID.
Check if a transition can be executed
Executes a transition to change the current state in the association table
Creates an association for the workflow_associations table
Update an existing association with a new state
Removes associations from the workflow_associations table
Loads an existing association item with state and item ID
Details
__construct(string $extension, CMSApplication|null $app = null, DatabaseDriver|null $db = null)
Class constructor
string
getConditionName(int $value)
Returns the translated condition name, based on the given number
bool|int
getDefaultStageByCategory(int $catId = 0)
Try to load a workflow default stage by category ID.
bool
executeTransition(array $pks, int $transitionId)
Executes a transition to change the current state in the association table
bool
createAssociation(int $pk, int $state)
Creates an association for the workflow_associations table
bool
updateAssociations(array $pks, int $state)
Update an existing association with a new state