|
Doctrine 1.2.4
|
Inherits Doctrine_Parser.
Public Member Functions | |
| doDump ($data, $path=null) | |
| doLoad ($path) | |
| dumpData ($array, $path=null, $charset=null) | |
| loadData ($path) | |
| prepareData ($simpleXml) | |
Static Public Member Functions | |
| static | arrayToXml ($array, $rootNodeName= 'data', $xml=null, $charset=null) |
| static | dump ($array, $type= 'xml', $path=null, $charset=null) |
| static | getParser ($type) |
| static | load ($path, $type= 'xml') |
|
static |
arrayToXml
| string | $array | Array to convert to xml |
| string | $rootNodeName | Name of the root node |
| string | $xml | SimpleXmlElement |
Definition at line 61 of file Xml.php.
|
inherited |
doDump
| string | $data | |
| string | $path |
Definition at line 145 of file Parser.php.
|
inherited |
doLoad
Get contents whether it is the path to a file file or a string of txt. Either should allow php code in it.
| string | $path |
Definition at line 120 of file Parser.php.
|
staticinherited |
dump
Interface for pulling and dumping data to a file
| string | $array | |
| string | $path | |
| string | $type | |
| string | $charset | The charset of the data being dumped |
Definition at line 104 of file Parser.php.
| Doctrine_Parser_Xml::dumpData | ( | $array, | |
$path = null, |
|||
$charset = null |
|||
| ) |
dumpData
Convert array to xml and dump to specified path or return the xml
| string | $array | Array of data to convert to xml |
| string | $path | Path to write xml data to |
| string | $charset | The charset of the data being dumped |
|
staticinherited |
getParser
Get instance of the specified parser
| string | $type |
Definition at line 68 of file Parser.php.
|
staticinherited |
load
Interface for loading and parsing data from a file
| string | $path | |
| string | $type |
Definition at line 85 of file Parser.php.
| Doctrine_Parser_Xml::loadData | ( | $path | ) |
loadData
Load xml file and return array of data
| string | $path | Path to load xml data from |
Definition at line 105 of file Xml.php.
| Doctrine_Parser_Xml::prepareData | ( | $simpleXml | ) |
prepareData
Prepare simple xml to array for return
| string | $simpleXml |
Definition at line 122 of file Xml.php.