[pLog-svn] r1985 - plog/branches/plog-1.0.1/class/xml/tree
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Wed May 11 17:51:14 GMT 2005
Author: oscar
Date: 2005-05-11 17:51:14 +0000 (Wed, 11 May 2005)
New Revision: 1985
Modified:
plog/branches/plog-1.0.1/class/xml/tree/Node.php
plog/branches/plog-1.0.1/class/xml/tree/Tree.php
Log:
removed some unneeded debug stuff
Modified: plog/branches/plog-1.0.1/class/xml/tree/Node.php
===================================================================
--- plog/branches/plog-1.0.1/class/xml/tree/Node.php 2005-05-11 17:00:15 UTC (rev 1984)
+++ plog/branches/plog-1.0.1/class/xml/tree/Node.php 2005-05-11 17:51:14 UTC (rev 1985)
@@ -223,7 +223,7 @@
$pos = count($this->children);
if (($pos < -count($this->children)) || ($pos > count($this->children))) {
- _debug("Invalid insert position.");
+ //_debug("Invalid insert position.");
return false;
}
@@ -248,7 +248,7 @@
}
$this->children[$pos] = $child->root;
} else {
- _debug("Bad node (must be a XML_Tree or an XML_Tree_Node)");
+ //_debug("Bad node (must be a XML_Tree or an XML_Tree_Node)");
return false;
}
} else { // child offered is a string
@@ -519,7 +519,7 @@
}
// No node with that name found
- _debug("Bad path to node: [".implode('/', $path)."]");
+ //_debug("Bad path to node: [".implode('/', $path)."]");
return false;
}
Modified: plog/branches/plog-1.0.1/class/xml/tree/Tree.php
===================================================================
--- plog/branches/plog-1.0.1/class/xml/tree/Tree.php 2005-05-11 17:00:15 UTC (rev 1984)
+++ plog/branches/plog-1.0.1/class/xml/tree/Tree.php 2005-05-11 17:51:14 UTC (rev 1985)
@@ -461,19 +461,19 @@
function &getNodeAt($path)
{
if (is_null($this->root)){
- _debug("XML_Tree hasn't got a root node");
+ //_debug("XML_Tree hasn't got a root node");
return false;
}
if (is_string($path))
$path = explode("/", $path);
if (sizeof($path) == 0) {
- _debug("Path '$path' to node is empty");
+ //_debug("Path '$path' to node is empty");
return false;
}
$path1 = $path;
$rootName = array_shift($path1);
if ($this->root->name != $rootName) {
- _debug("Path '$path' does not match the document root");
+ //_debug("Path '$path' does not match the document root");
return false;
}
$x =& $this->root->getNodeAt($path1);
@@ -482,7 +482,7 @@
return $x;
}
// No node with that name found
- _debug("Bad path '$path' to node 2: [".implode('/', $path)."]");
+ //_debug("Bad path '$path' to node 2: [".implode('/', $path)."]");
return false;
}
More information about the pLog-svn
mailing list