| [ Index ] |
|
Code source de SPIP Agora 1.4 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
| Poids: | 376 lignes (10 kb) |
| Inclus ou requis: | 1 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
XML_Tree:: (19 méthodes):
XML_Tree()
addRoot()
add_root()
insertChild()
insert_child()
removeChild()
remove_child()
getTreeFromFile()
getTreeFromString()
startHandler()
endHandler()
cdataHandler()
clone()
dump()
get()
getName()
get_name()
registerName()
register_name()
| XML_Tree($filename = '', $version = '1.0') X-Ref |
| Constructor param: string Filename param: string XML Version |
| addRoot($name, $content = '', $attributes = array() X-Ref |
| Add root node. param: string $name name of root element return: object XML_Tree_Node reference to root node |
| add_root($name, $content = '', $attributes = array() X-Ref |
| insertChild($path,$pos,$child, $content = '', $attributes = array() X-Ref |
| inserts a child/tree (child) into tree ($path,$pos) and maintains namespace integrity param: array $path path to parent of child to remove param: integer $pos position of child to be inserted in its parents children-list param: mixed $child child-node (by XML_Tree,XML_Node or Name) param: string $content content (text) for new node param: array $attributes attribute-hash for new node return: object XML_Tree_Node inserted child (node) |
| insert_child($path,$pos,$child, $content = '', $attributes = array() X-Ref |
| removeChild($path,$pos) X-Ref |
| Pas de description |
| remove_child($path, $pos) X-Ref |
| getTreeFromFile() X-Ref |
| Pas de description |
| getTreeFromString($str) X-Ref |
| Pas de description |
| startHandler($xp, $elem, &$attribs) X-Ref |
| Handler for the xml-data param: mixed $xp ignored param: string $elem name of the element param: array $attribs attributes for the generated node |
| endHandler($xp, $elem) X-Ref |
| Handler for the xml-data param: mixed $xp ignored param: string $elem name of the element |
| cdataHandler($xp, $data) X-Ref |
| Pas de description |
| clone() X-Ref |
| Get a copy of this tree. return: object XML_Tree |
| dump() X-Ref |
| Print text representation of XML tree. |
| get() X-Ref |
| Get text representation of XML tree. return: string XML |
| getName($name) X-Ref |
| Get current namespace. param: string $name namespace return: string |
| get_name($name) X-Ref |
| registerName($name, $path) X-Ref |
| Register a namespace. param: string $name namespace param: string $path path |
| register_name($name, $path) X-Ref |
| Généré le : Sat Feb 24 14:40:03 2007 | par Balluche grâce à PHPXref 0.7 |