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
Afficher le fichier Open project: rolfvreijdenberger/izzum-statemachine Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

__toString() public méthode

public __toString ( )

createFromFile() public static méthode

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

getXML() public méthode

public getXML ( )

getXSD() public méthode

gets the xsd used for the datastructure of the statemachine definitions
public getXSD ( ) : string
Résultat string

load() public méthode

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

toString() public méthode

public toString ( )