PHP 클래스 raoul2000\workflow\source\file\GraphmlLoader

상속: extends WorkflowDefinitionLoader
파일 보기 프로젝트 열기: raoul2000/yii2-workflow 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$path path where the graphml file to load is located

공개 메소드들

메소드 설명
convert ( string $graphmlFile ) Convert a graphml file describing a workflow into an array suitable to create a workflow object.
createFilename ( string $workflowId ) : string creates and returns the filename where the workflow $workflowId is stored.
loadDefinition ( string $workflowId, IWorkflowSource $source ) : array Loads the definition of the workflow whose id is passed as argument.

비공개 메소드들

메소드 설명
collectNodes ( ) : [] Extract nodes defined in the graphml input file.
When working with yEd, remember that the node 'label' is used as the node id by workflow.
collectTransitions ( ) : [] Extract edges defined in the graphml input file
collectWorkflowProperties ( )
createWorkflowDefinition ( [] $w, [] $n, [] $e ) Merges all arrays extracted from the graphml file (workflow, nodes, edges) to create and return a single array descrbing a workflow.
extractYedProperties ( ) Retrieve the graphml id attribute for each named properties defines in the _mapper array.
isBlank ( string $str ) : boolean

메소드 상세

convert() 공개 메소드

Convert a graphml file describing a workflow into an array suitable to create a workflow object.
public convert ( string $graphmlFile )
$graphmlFile string the path to the graphml file to process

createFilename() 공개 메소드

The filename is built using the [[path]] property, the workflow id itself, and *graphml* extension.
public createFilename ( string $workflowId ) : string
$workflowId string the workflow id
리턴 string the filename

loadDefinition() 공개 메소드

Loads the definition of the workflow whose id is passed as argument.
public loadDefinition ( string $workflowId, IWorkflowSource $source ) : array
$workflowId string
$source IWorkflowSource the workflow source component
리턴 array the workflow definition

프로퍼티 상세

$path 공개적으로 프로퍼티

path where the graphml file to load is located
public $path