PHP Class izzum\statemachine\loader\XML

The xml string can contain one or more machine definitions. The correct machine will be found from the xml structure. This class also provides a way to load xml from a file. The format of the data to be loaded is specified via an xml schema definition. see getXSD
Author: Rolf Vreijdenberger
Inheritance: implements izzum\statemachine\loader\Loader
Show file Open project: rolfvreijdenberger/izzum-statemachine Class Usage Examples

Public Methods

Method Description
__construct ( string $xml )
__toString ( )
createFromFile ( string $filename ) : XML creates an instance of this class with the data loaded from a file.
getXML ( )
getXSD ( ) : string gets the xsd used for the datastructure of the statemachine definitions
load ( StateMachine $stateMachine ) {@inheritDoc}
toString ( )

Method Details

__construct() public method

public __construct ( string $xml )
$xml string optional a valid xml string according to the schema

__toString() public method

public __toString ( )

createFromFile() public static method

creates an instance of this class with the data loaded from a file.
public static createFromFile ( string $filename ) : XML
$filename string
return XML an instance of XML with the data from the file

getXML() public method

public getXML ( )

getXSD() public method

gets the xsd used for the datastructure of the statemachine definitions
public getXSD ( ) : string
return string

load() public method

{@inheritDoc}
public load ( StateMachine $stateMachine )
$stateMachine izzum\statemachine\StateMachine

toString() public method

public toString ( )