svn: /phd/trunk/phpdotnet/phd/Package/PHP/ XHTML.php

From: Date: Fri, 02 Jul 2010 18:00:25 +0000
Subject: svn: /phd/trunk/phpdotnet/phd/Package/PHP/ XHTML.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-6861@lists.php.net to get a copy of this message
bjori Fri, 02 Jul 2010 18:00:25 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=300947 Log: Fixed bug#51750 (Add ()'s when rendering methodname elements) Bug: http://bugs.php.net/51750 (Open) Add ()'s when rendering methodname elements Changed paths: U phd/trunk/phpdotnet/phd/Package/PHP/XHTML.php Modified: phd/trunk/phpdotnet/phd/Package/PHP/XHTML.php =================================================================== --- phd/trunk/phpdotnet/phd/Package/PHP/XHTML.php 2010-07-02 17:17:16 UTC (rev 300946) +++ phd/trunk/phpdotnet/phd/Package/PHP/XHTML.php 2010-07-02 18:00:25 UTC (rev 300947) @@ -83,8 +83,7 @@ 'classsynopsis' => 'format_classsynopsis_methodsynopsis_methodname_text', ), 'methodsynopsis' => array( - /* DEFAULT */ 'format_function_text', - 'classsynopsis' => 'format_classsynopsis_methodsynopsis_methodname_text', + /* DEFAULT */ 'format_classsynopsis_methodsynopsis_methodname_text', ), 'destructorsynopsis' => array( /* DEFAULT */ 'format_function_text', @@ -394,7 +393,7 @@ public function format_function_text($value, $tag, $display_value = null) { if ($display_value === null) { - $display_value = $value; + $display_value = $value . "()"; } $ref = strtolower(str_replace(array("_", "::", "->"), array("-", "-", "-"), $value)); @@ -407,15 +406,15 @@ } if ($this->chunked) { - return '<a href="'.$filename. $this->ext. '" class="function"'.$rel.'>' .$display_value.($tag == "function" ? "()" : ""). '</a>'.$desc; + return '<a href="'.$filename. $this->ext. '" class="' . $tag . '"'.$rel.'>' .$display_value. '</a>'.$desc; } - return '<a href="#'.$filename. '" class="function"'.$rel.'>' .$display_value.($tag == "function" ? "()" : ""). '</a>'.$desc; + return '<a href="#'.$filename. '" class="' . $tag . '"'.$rel.'>' .$display_value. '</a>'.$desc; } } elseif ($this->CURRENT_ID !== $filename) { v("No link found for %s", $value, VERBOSE_BROKEN_LINKS); } - return '<b>' .$display_value.($tag == "function" ? "()" : ""). '</b>'; + return '<b>' .$display_value. '</b>'; } public function format_grep_classname_text($value, $tag) {

« previous php.doc.cvs (#6861) next »