PHP Class raoul2000\workflow\base\Status

Author: Raoul
Inheritance: extends WorkflowBaseObject, implements raoul2000\workflow\base\StatusInterface
Mostra file Open project: raoul2000/yii2-workflow Class Usage Examples

Public Methods

Method Description
__construct ( array $config = [] ) Status constructor.
getId ( ) : string Returns the id of this status.
getLabel ( ) : string Returns the label for this status.
getTransitions ( )
getWorkflow ( )
getWorkflowId ( ) : string
isInitialStatus ( )

Method Details

__construct() public method

To create a Status you must provide following values in the $config array passed as argument: - **id** : the id for this status. - **workflowId ** : the id of the workflow this status belongs to. Following values are optional : - **label** : human readable name for this status.
public __construct ( array $config = [] )
$config array

getId() public method

Note that the status id returned must be unique inside the workflow it belongs to, but it doesn't have to be unique among all workflows.
public getId ( ) : string
return string the id for this status

getLabel() public method

Returns the label for this status.
public getLabel ( ) : string
return string the label for this status. .

getTransitions() public method

See also: raoul2000\workflow\base\StatusInterface::getTransitions()
public getTransitions ( )

getWorkflow() public method

See also: raoul2000\workflow\base\StatusInterface::getWorkflow()
public getWorkflow ( )

getWorkflowId() public method

public getWorkflowId ( ) : string
return string the id of the workflow this status belongs to.

isInitialStatus() public method

See also: raoul2000\workflow\base\StatusInterface::isInitialStatus()
public isInitialStatus ( )