ORDER

The ORDER class provides the functioanallity to create a XML, which is validatable with the MDXI.xsd

author mPAY24 GmbH <support@mpay24.com>
version $Id: orderXML.php 5477 2013-06-18 13:00:17Z anna $
filesource orderXML.php
license http://ec.europa.eu/idabc/eupl.html EUPL, Version 1.1

Methods

Create a DOMDocument or a ORDER-Object with root $doc

ORDER(\DOMNode $doc = null, \DOMNode $node = null) 
inherited

Arguments

$doc

\DOMNode

The root DOMNode of an XML tree

$node

\DOMNode

The child DOMNode

Generic call-Method instead of numerous setter methods

__call(string $method, array $args) 
inherited

Arguments

$method

string

The name of the method, which is called for the Item-Object

$args

array

The arguments with them the method is called - minOccurance = 0, maxOccurance = 2: The first argument must be a positive integer (will be used as a index) The second argument is optional and would be used as value for the DOMNode

Get the value of a ORDER-Variable

__get(string $name) 
inherited

Arguments

$name

string

The name of the method, which is called for the Item-Object

Set the value of a ORDER-Variable

__set(string $name, mixed $value) 
inherited

Arguments

$name

string

The name of the Node you want to set

$value

mixed

The value of the Node you want to set

Create a XML-Object from the ORDER-Object and return it

toXML() 
inherited

Validate the ORDER with the schema, defined in the constant MDXI_SCHEMA and return TRUE if the validation was successful or FALSE

validate() 
inherited

Encode the XML-characters in a string

xmlencode(string $txt) 
inherited

Arguments

$txt

string

A string to be encoded

Check whether the MDXI.xsd is older than one week

olderThanOneWeek(string $filename) 
inherited

Arguments

$filename

string

The path to the file (MDXI.xsd)

Properties

The DOMDocument, which the MDXI XML will be build on

doc

A DOMNode from the MDXI XML, or the whole MDXI XML, represented as DOMDocument

node