PHP Class raoul2000\workflow\source\file\PhpClassLoader

The PHP class is expected to implement the **IWorkflowDefinitionProvider** interface.
Inheritance: extends WorkflowDefinitionLoader
显示文件 Open project: raoul2000/yii2-workflow

Public Properties

Property Type Description
$namespace namespace where workflow definition class are located

Public Methods

Method Description
getClassname ( string $workflowId ) : string Returns the complete name for the Workflow Provider class used to retrieve the definition of workflow $workflowId.
getNameSpace ( ) : string Returns the namespace value used to load the workflow definition provider class.
loadDefinition ( string $workflowId, unknown $source ) Instanciate the PHP class to use as workflow definition provider, retrieve the workflow definition and parses it.

Method Details

getClassname() public method

The class name is built by appending the workflow id to the namespace parameter set for this source component.
public getClassname ( string $workflowId ) : string
$workflowId string a workflow id
return string the full qualified class name used to provide definition for the workflow

getNameSpace() public method

If the alias with name self::NAMESPACE_ALIAS_NAME is found, it takes precedence over the configured *namespace* attribute.
public getNameSpace ( ) : string
return string the namespace value

loadDefinition() public method

Instanciate the PHP class to use as workflow definition provider, retrieve the workflow definition and parses it.
public loadDefinition ( string $workflowId, unknown $source )
$workflowId string
$source unknown

Property Details

$namespace public_oe property

namespace where workflow definition class are located
public $namespace