libSmalldb  v0.6
Static Public Member Functions | List of all members
GraphMLReader Class Reference

Description

GraphML reader.

Load state machine definition from GraphML created by yEd graph editor.

Options:

See also
http://www.yworks.com/en/products_yed_about.html

Inheritance diagram for GraphMLReader

Static Public Member Functions

static loadString ($data_string, $options=array(), $filename=null)
 Parse string and return fragment of state machine definition. More...
 
static postprocessDefinition (&$machine_def)
 If reader was invoked, it may need to postprocess the definition when everything is loaded (after last loadString call is completed). More...
 

Member Function Documentation

static loadString (   $data_string,
  $options = array(),
  $filename = null 
)
static

Parse string and return fragment of state machine definition.

Parameters
$data_string- Data to parse.
$options- Additional options specified in master definition.
$filename- Name of the file (or similar identifier) - only for debug messages.
Returns
array - Fragment of machine definition.

Implements IMachineDefinitionReader.

static postprocessDefinition ( $machine_def)
static

If reader was invoked, it may need to postprocess the definition when everything is loaded (after last loadString call is completed).

Postprocessing is invoked only once, even when loadString has been invoked multiple times.

Parameters
$machine_def- Machine definition to be processed in place.

Implements IMachineDefinitionReader.