Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
XMLSplitter Class Reference
+ Collaboration diagram for XMLSplitter:

Public Member Functions

 __construct ($splitdir)
 
 split ($file)
 
 close ()
 

Static Public Member Functions

static escapeEntities ($str)
 
static unescapeEntities ($str)
 

Data Fields

 $errmsg = ''
 

Detailed Description

Definition at line 7 of file Class.XMLSplitter.php.

Constructor & Destructor Documentation

__construct (   $splitdir)

Split a XML file into smaller XML files: each child node of the root node will be stored into a dedicated file named after the node 'name' or 'id' attribute.

Parameters
string$splitdirthe directory in which the nodes XML files will be produced
Exceptions
Dcp\Exception

Definition at line 60 of file Class.XMLSplitter.php.

Member Function Documentation

close ( )

Close all files opened by the XML Splitter.

Returns
void

Definition at line 112 of file Class.XMLSplitter.php.

static escapeEntities (   $str)
static

Escape XML reserved chars into their corresponding entities

Parameters
string$strthe string to escape
Returns
string the string with reserved characters escaped

Definition at line 127 of file Class.XMLSplitter.php.

split (   $file)

Parse the given XML input file and produce the XML output files.

Parameters
string$filethe XML input file
Exceptions
Exception

Definition at line 83 of file Class.XMLSplitter.php.

+ Here is the call graph for this function:

static unescapeEntities (   $str)
static

Unescape XML entities into their corresponding char

Parameters
string$strthe string to unescape
Returns
string the string with the XML entities converted back to their characters

Definition at line 150 of file Class.XMLSplitter.php.

Field Documentation

$errmsg = ''

Definition at line 13 of file Class.XMLSplitter.php.


The documentation for this class was generated from the following file:
← centre documentaire © anakeen