cvs: pear /XML_Tree Tree.php
| From: | Thomas V.V.Cox | Date: | Sun, 24 Feb 2002 15:55:38 +0000 |
| Subject: | cvs: pear /XML_Tree Tree.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-2596@lists.php.net to get a copy of this message | ||
cox Sun Feb 24 10:55:38 2002 EDT
Modified files:
/pear/XML_Tree Tree.php
Log:
trailing ws
Index: pear/XML_Tree/Tree.php
diff -u pear/XML_Tree/Tree.php:1.10 pear/XML_Tree/Tree.php:1.11
--- pear/XML_Tree/Tree.php:1.10 Fri Jan 18 13:25:09 2002
+++ pear/XML_Tree/Tree.php Sun Feb 24 10:55:34 2002
@@ -18,7 +18,7 @@
// | Tomas V.V.Cox <cox@idecnet.com> (tree mapping from xml file)|
// +----------------------------------------------------------------------+
//
-// $Id: Tree.php,v 1.10 2002/01/18 18:25:09 mj Exp $
+// $Id: Tree.php,v 1.11 2002/02/24 15:55:34 cox Exp $
//
require_once 'XML/Parser.php';
@@ -98,7 +98,7 @@
*
* @param string $name name of root element
* @return object XML_Tree_Node reference to root node
- *
+ *
* @access public
*/
function &add_root($name, $content = '', $attributes = array()) {
@@ -107,7 +107,7 @@
}
/*
- * inserts a child/tree (child) into tree ($path,$pos) and
+ * inserts a child/tree (child) into tree ($path,$pos) and
* maintains namespace integrity
*
* @param array $path path to parent of child to remove
@@ -117,8 +117,8 @@
* @param array $attributes attribute-hash for new node
*
* @return object XML_Tree_Node inserted child (node)
- * @access public
- */
+ * @access public
+ */
function &insert_child($path,$pos,$child, $content = '', $attributes = array()) {
// update namespace to maintain namespace integrity
$count=count($path);
@@ -132,15 +132,15 @@
}
/*
- * removes a child ($path,$pos) from tree ($path,$pos) and
+ * removes a child ($path,$pos) from tree ($path,$pos) and
* maintains namespace integrity
*
* @param array $path path to parent of child to remove
* @param integer $pos position of child in parents children-list
*
* @return object XML_Tree_Node parent whichs child was removed
- * @access public
- */
+ * @access public
+ */
function &remove_child($path,$pos) {
// update namespace to maintain namespace integrity
$count=count($path);
@@ -160,7 +160,7 @@
* Maps a xml file to a objects tree
*
* @return mixed The objects tree (XML_tree or an Pear error)
- * @access public
+ * @access public
*/
function &getTreeFromFile ()
{
@@ -186,7 +186,7 @@
* @param string $elem name of the element
* @param array $attribs attributes for the generated node
*
- * @access private
+ * @access private
*/
function StartHandler($xp, $elem, &$attribs)
{
@@ -208,7 +208,7 @@
* @param mixed $xp ignored
* @param string $elem name of the element
*
- * @access private
+ * @access private
*/
function EndHandler($xp, $elem)
{
@@ -232,9 +232,9 @@
* The xml character data handler
*
* @param mixed $xp ignored
- * @param string $data PCDATA between tags
+ * @param string $data PCDATA between tags
*
- * @access private
+ * @access private
*/
function cdataHandler($xp, $data)
{
@@ -248,7 +248,7 @@
* Get a copy of this tree.
*
* @return object XML_Tree
- * @access public
+ * @access public
*/
function clone() {
$clone=new XML_Tree($this->filename,$this->version);
@@ -266,7 +266,7 @@
/**
* Print text representation of XML tree.
*
- * @access public
+ * @access public
*/
function dump() {
echo $this->get();
@@ -276,7 +276,7 @@
* Get text representation of XML tree.
*
* @return string XML
- * @access public
+ * @access public
*/
function &get() {
$out = '<?xml version="' . $this->version .
"\"?>\n";
@@ -291,7 +291,7 @@
* @param string $name namespace
* @return string
*
- * @access public
+ * @access public
*/
function &get_name($name) {
return $this->root->get_element($this->namespace[$name]);
@@ -302,8 +302,8 @@
*
* @param string $name namespace
* @param string $path path
- *
- * @access public
+ *
+ * @access public
*/
function register_name($name, $path) {
$this->namespace[$name] = $path;