Class SWPhpWorkflowSource
This class gives access to workflow and statuses stored as PHP files. Following
attributes can be initialized when the component is configured:
- basePath (string) : the base path alias where all workflow are stored.By default, it is set to application.models.workflows (folder "protected/models/workflows").
- definitionType (string) : Defines the type of PHP file to load. A Workflow can be defined in a PHP file that contains a simple array definition (definitionType = 'array'), or by a class (definitionType = 'class'). By default this attribute is set to 'array'.
- CApplicationComponent
- SWWorkflowSource
- SWPhpWorkflowSource
Located at SWPhpWorkflowSource.php
Methods summary
public
|
|
public
boolean
|
|
public
|
#
loadWorkflow( string $workflowId, boolean $forceReload = false )
Loads the workflow whose id is passed as argument. By default, if the workflow has already been loaded it is not reloaded unless $forceReload is TRUE |
public
|
#
addWorkflow( array $definition, string $id )
This method is used to add a new workflow definition to the current workflow collection. |
public
|
|
public
array
|
|
public
boolean
|
|
public
SWnode
|
|
public
array
|
Methods inherited from SWWorkflowSource
Magic methods summary
Properties summary
public
string
|
$basePath |
#
the base path alias where all workflow are stored.By default, it is set to application.models.workflows (folder "protected/models/workflows"). |
public
string
|
$definitionType |
#
Definition type for workflow. Allowed values are : class, array. Default is 'array' |