| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Source view] [Print] [Project Stats]
nodetools is a class of miscellaneous XML helper methods
| Author: | John Heinstein <johnkarl@nbnet.nb.ca> |
| Copyright: | (C) 2004 John Heinstein. All rights reserved |
| License: | http://www.gnu.org/copyleft/lesser.html LGPL License |
| File Size: | 235 lines (6 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
nodetools:: (5 methods):
parseAttributes()
moveUp()
moveDown()
nodeExists()
fromPath()
| parseAttributes($attrText, $convertEntities = true, $definedEntities = null) X-Ref |
| Parses the attributes string into an array of key / value pairs param: string The attribute text return: Array An array of key / value pairs |
| moveUp(&$node) X-Ref |
| Move a node to the previous index in the childNodes array param: Object The node to be moved |
| moveDown(&$node) X-Ref |
| Move a node to the next index in the childNodes array param: Object The node to be moved |
| nodeExists(&$callingNode, $path) X-Ref |
| Checks if a node exists on the given path; if so, returns the node, otherwise false param: Object The calling node param: string The path return: mixed The found node, or false |
| fromPath(&$xmldoc, $path, $text = null) X-Ref |
| Generates a heirarchy of nodes based on a path expression param: string The path expression param: string The value of a text node to be appended to the last element return: object The generated nodes |
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |