PHP Класс raoul2000\workflow\source\file\GraphmlLoader

Наследование: extends WorkflowDefinitionLoader
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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