model/modx/transport/modxmlpackagebuilder.class.php
- Classes
- modXMLPackageBuilder
\modXMLPackageBuilder
- Extends from
- \modPackageBuilder
- package
- modx
- subpackage
- transport
- Methods
- _handleCData
- _handleCloseElement
- _handleOpenElement
- build
- parseXML
Description
Abstracts the package building process for XML builds
Methods
_handleCData
_handleCData(
\xmlParser $parser, \$data $data
)
:
void
Arguments
- $parser
- \xmlParser
A reference to the xml parser instance - $data
- \$data
The data being wrapped in CDATA tags
Details
- visibility
- protected
- final
- false
- static
- false
_handleCloseElement
_handleCloseElement(
\xmlParser $parser, string|array $element
)
:
void
Handles a closed XML tag
Arguments
- $parser
- \xmlParser
A reference to the xml parser instance - $element
- stringarray
The closing element
Details
- visibility
- protected
- final
- false
- static
- false
_handleOpenElement
_handleOpenElement(
\xmlParser $parser, string|array $element, array $attributes
)
:
void
Arguments
- $parser
- \xmlParser
A reference to the xml parser instance - $element
- stringarray
The opening XML element - $attributes
- array
An array of attributes on the element
Details
- visibility
- protected
- final
- false
- static
- false
build
build(
string $fileName
)
:
bool
Build the package from a specific XML file
Arguments
- $fileName
- string
The XML file to parse
Output
- bool
- True if successful
Details
- visibility
- public
- final
- false
- static
- false
parseXML
parseXML(
string $fileName
)
:
bool
Parse the XML file
Arguments
- $fileName
- string
Output
- bool
Details
- visibility
- public
- final
- false
- static
- false