cvs: php4 /pear/Experimental/HTML Menu.php

From: Date: Wed, 14 Mar 2001 22:33:58 +0000
Subject: cvs: php4 /pear/Experimental/HTML Menu.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-4573@lists.php.net to get a copy of this message
uw Wed Mar 14 14:33:58 2001 EDT Modified files: /php4/pear/Experimental/HTML Menu.php Log: - code beatifiying - minor inline doc update Index: php4/pear/Experimental/HTML/Menu.php diff -u php4/pear/Experimental/HTML/Menu.php:1.8 php4/pear/Experimental/HTML/Menu.php:1.9 --- php4/pear/Experimental/HTML/Menu.php:1.8 Tue Mar 13 14:03:28 2001 +++ php4/pear/Experimental/HTML/Menu.php Wed Mar 14 14:33:58 2001 @@ -206,13 +206,13 @@ switch ($this->menu_type) { case "rows": case "prevnext": - $html .= "<table border><tr>"; + $html .= '<table border><tr>'; break; case "tree": case "urhere": case "sitemap": - $html .= "<table border>"; + $html .= '<table border>'; break; } @@ -232,13 +232,13 @@ switch ($this->menu_type) { case "rows": case "prevnext": - $html .="</tr></table>"; + $html .= '</tr></table>'; break; case "tree": case "urhere": case "sitemap": - $html = "</table>"; + $html .= '</table>'; break; } @@ -462,7 +462,7 @@ * * @param array menu item data (node data) * @param integer level in the menu tree - * @param string menu item type: 0, 1, 2. 0 => plain menu item, + * @param integer menu item type: 0, 1, 2. 0 => plain menu item, * 1 => selected (active) menu item, 2 => item * is a member of the path to the selected (active) menu item * 3 => previous entry, 4 => next entry @@ -475,11 +475,11 @@ if ("tree" == $this->menu_type) { // tree menu - $html .= "<tr>"; + $html .= '<tr>'; $indent = ""; if ($level) for ($i = 0; $i < $level; $i++) - $indent .= "&nbsp;&nbsp;&nbsp;"; + $indent .= '&nbsp;&nbsp;&nbsp;'; } // draw the <td></td> cell depending on the type of the menu item @@ -541,7 +541,7 @@ } if ("tree" == $this->menu_type) - $html .= "</tr>"; + $html .= '</tr>'; return $html; } // end func getEnty

« previous php.cvs (#4573) next »