cvs: phd / package.xml /themes/php phpdotnet.php
| From: | Hannes Magnusson | Date: | Thu, 10 Jan 2008 21:37:59 +0000 |
| Subject: | cvs: phd / package.xml /themes/php phpdotnet.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-1027@lists.php.net to get a copy of this message | ||
bjori Thu Jan 10 21:37:59 2008 UTC
Modified files:
/phd package.xml
/phd/themes/php phpdotnet.php
Log:
- Fixed bug#43489 (Class synopsis return types are not links)
http://cvs.php.net/viewvc.cgi/phd/package.xml?r1=1.26&r2=1.27&diff_format=u
Index: phd/package.xml
diff -u phd/package.xml:1.26 phd/package.xml:1.27
--- phd/package.xml:1.26 Thu Jan 10 19:16:23 2008
+++ phd/package.xml Thu Jan 10 21:37:59 2008
@@ -26,6 +26,7 @@
<notes>
- Removed support for phnotify
- Fixed E_NOTICE on empty references
+ - Fixed bug#43489 (Class synopsis return types are not links)
- Fixed bug#43428 (Empty TOC)
- Fixed bug#43421 (All intra-document hyperlinks broken in the Single HTML file form of manual)
- Added index chaching (Edward Z.)
http://cvs.php.net/viewvc.cgi/phd/themes/php/phpdotnet.php?r1=1.35&r2=1.36&diff_format=u
Index: phd/themes/php/phpdotnet.php
diff -u phd/themes/php/phpdotnet.php:1.35 phd/themes/php/phpdotnet.php:1.36
--- phd/themes/php/phpdotnet.php:1.35 Thu Jan 10 19:16:24 2008
+++ phd/themes/php/phpdotnet.php Thu Jan 10 21:37:59 2008
@@ -1,5 +1,5 @@
<?php
-/* $Id: phpdotnet.php,v 1.35 2008/01/10 19:16:24 bjori Exp $ */
+/* $Id: phpdotnet.php,v 1.36 2008/01/10 21:37:59 bjori Exp $ */
abstract class phpdotnet extends PhDTheme {
protected $elementmap = array(
@@ -98,9 +98,12 @@
'type' => array(
/* DEFAULT */ 'format_type_text',
'classsynopsisinfo' => false,
- 'fieldsynopsis' => false,
- 'methodparam' => false,
- 'methodsynopsis' => false,
+ 'fieldsynopsis' => 'format_type_if_object_or_pseudo_text',
+ 'methodparam' => 'format_type_if_object_or_pseudo_text',
+ 'methodsynopsis' => array(
+ /* DEFAULT */ 'format_type_if_object_or_pseudo_text',
+ 'classsynopsis' => false,
+ ),
),
'refname' => 'format_refname_text',
@@ -418,6 +421,12 @@
return '<a href="#'.$filename. '"
class="function">' .$display_value.($tag == "function" ? "()"
: ""). '</a>';
}
+ public function format_type_if_object_or_pseudo_text($type, $tagname) {
+ if (in_array(strtolower($type), array("bool", "int",
"double", "boolean", "integer", "float", "string",
"array", "object", "resource", "null"))) {
+ return false;
+ }
+ return self::format_type_text($type, $tagname);
+ }
public function format_type_text($type, $tagname) {
$t = strtolower($type);
$href = $fragment = "";