PHP Класс 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
Автор: Rolf Vreijdenberger
Наследование: implements izzum\statemachine\loader\Loader
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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 ( )

Описание методов

__construct() публичный метод

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

__toString() публичный метод

public __toString ( )

createFromFile() публичный статический метод

creates an instance of this class with the data loaded from a file.
public static createFromFile ( string $filename ) : XML
$filename string
Результат XML an instance of XML with the data from the file

getXML() публичный метод

public getXML ( )

getXSD() публичный метод

gets the xsd used for the datastructure of the statemachine definitions
public getXSD ( ) : string
Результат string

load() публичный метод

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

toString() публичный метод

public toString ( )