Class ODDDocument
This class is used during import and export to construct.
-
ODDDocument
implements
Iterator
Methods summary
public
|
#
__construct( array $elements = NULL )
Create a new ODD Document.
Create a new ODD Document.
Parameters
- $elements
array $elements Elements to add
|
public
string
|
#
getVersion( )
Return the version of ODD being used.
Return the version of ODD being used.
Returns
string
|
public
integer
|
#
getNumElements( )
Returns the number of elements
Returns the number of elements
Returns
integer
|
public
|
#
addElement( ODD $element )
Add an element
Parameters
- $element
ODD
$element An ODD element
|
public
|
#
addElements( array $elements )
Add multiple elements at once
Add multiple elements at once
Parameters
- $elements
array $elements Array of ODD elements
|
public
array
|
|
public
|
#
setWrapperFactory( ODDWrapperFactory $factory )
Set an optional wrapper factory to optionally embed the ODD document in
another format.
Set an optional wrapper factory to optionally embed the ODD document in
another format.
Parameters
- $factory
ODDWrapperFactory $factory The factory
|
public
string
|
#
__toString( )
Magic function to generate valid ODD XML for this item.
Magic function to generate valid ODD XML for this item.
Returns
string
|
public
|
#
rewind( )
Iterator interface
See
Implementation of
|
public
|
#
current( )
Iterator interface
See
Implementation of
|
public
|
#
key( )
Iterator interface
See
Implementation of
|
public
|
#
next( )
Iterator interface
See
Implementation of
|
public
|
#
valid( )
Iterator interface
See
Implementation of
|