svn: /phd/trunk/ package.xml phpdotnet/phd/Format.php phpdotnet/phd/Package/PHP/XHTML.php
| From: | Richard Quadling | Date: | Fri, 03 Jun 2011 21:47:57 +0000 |
| Subject: | svn: /phd/trunk/ package.xml phpdotnet/phd/Format.php phpdotnet/phd/Package/PHP/XHTML.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-8201@lists.php.net to get a copy of this message | ||
rquadling Fri, 03 Jun 2011 21:47:57 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=311788
Log:
Renamed getTree() to getDebugTree() as it is a debugging feature (Thanks Hannes for the suggestion).
Changed paths:
U phd/trunk/package.xml
U phd/trunk/phpdotnet/phd/Format.php
U phd/trunk/phpdotnet/phd/Package/PHP/XHTML.php
Modified: phd/trunk/package.xml
===================================================================
--- phd/trunk/package.xml 2011-06-03 21:26:56 UTC (rev 311787)
+++ phd/trunk/package.xml 2011-06-03 21:47:57 UTC (rev 311788)
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8"?>
<package xmlns="http://pear.php.net/dtd/package-2.0"
xmlns:tasks="http://pear.php.net/dtd/tasks-1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -79,7 +79,7 @@
- Serbian (Nikola Smolenski)
- Fixed bug#52664 - "Missing" example#1. (Hannes)
- Added --packagedir option to use external packages. (Moacir)
- - Added Format::getTree() method to allow the current location in the tree to be reportable.
(Richard Quadling)
+ - Added Format::getDebugTree() method to allow the current location in the tree to be
reportable. (Richard Quadling)
</notes>
<contents>
Modified: phd/trunk/phpdotnet/phd/Format.php
===================================================================
--- phd/trunk/phpdotnet/phd/Format.php 2011-06-03 21:26:56 UTC (rev 311787)
+++ phd/trunk/phpdotnet/phd/Format.php 2011-06-03 21:47:57 UTC (rev 311788)
@@ -566,7 +566,7 @@
*
* @return string A nested list of IDs from the root to the CURRENT_ID.
*/
- public function getTree($name, $props)
+ public function getDebugTree($name, $props)
{
/* Build the list of IDs from the CURRENT_ID to the root. */
$ids = array();
@@ -588,7 +588,7 @@
$tree .= str_repeat(' ', $indent++) . $value . PHP_EOL;
});
- // Add the open and closed sibling and the current element.
+ /* Add the open and closed sibling and the current element. */
$tree .=
str_repeat(' ', $indent) . '<' . $props['sibling'] .
'>' . PHP_EOL .
str_repeat(' ', $indent) . '...' . PHP_EOL .
Modified: phd/trunk/phpdotnet/phd/Package/PHP/XHTML.php
===================================================================
--- phd/trunk/phpdotnet/phd/Package/PHP/XHTML.php 2011-06-03 21:26:56 UTC (rev 311787)
+++ phd/trunk/phpdotnet/phd/Package/PHP/XHTML.php 2011-06-03 21:47:57 UTC (rev 311788)
@@ -566,7 +566,7 @@
}
else {
$id = uniqid();
- v("Uhm. Can't find an ID for a chunk? - Generating a random one
(%s)\n%s", $id, $this->getTree($name, $props), E_USER_WARNING);
+ v("Uhm. Can't find an ID for a chunk? - Generating a random one
(%s)\n%s", $id, $this->getDebugTree($name, $props), E_USER_WARNING);
}
$this->CURRENT_CHUNK = $this->CURRENT_ID = $id;