cvs: phd /themes/php phpdotnet.php
| From: | Hannes Magnusson | Date: | Sat, 15 Nov 2008 17:48:11 +0000 |
| Subject: | cvs: phd /themes/php phpdotnet.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-2557@lists.php.net to get a copy of this message | ||
bjori Sat Nov 15 17:48:11 2008 UTC
Modified files:
/phd/themes/php phpdotnet.php
Log:
Link <interfacename> to interfaces like we do with <classname>
http://cvs.php.net/viewvc.cgi/phd/themes/php/phpdotnet.php?r1=1.58&r2=1.59&diff_format=u
Index: phd/themes/php/phpdotnet.php
diff -u phd/themes/php/phpdotnet.php:1.58 phd/themes/php/phpdotnet.php:1.59
--- phd/themes/php/phpdotnet.php:1.58 Fri Nov 7 21:49:18 2008
+++ phd/themes/php/phpdotnet.php Sat Nov 15 17:48:11 2008
@@ -1,11 +1,12 @@
<?php
-/* $Id: phpdotnet.php,v 1.58 2008/11/07 21:49:18 cweiske Exp $ */
+/* $Id: phpdotnet.php,v 1.59 2008/11/15 17:48:11 bjori Exp $ */
abstract class phpdotnet extends PhDTheme {
protected $elementmap = array(
'acronym' => 'format_suppressed_tags',
'function' => 'format_suppressed_tags',
'classname' => 'format_suppressed_tags',
+ 'interfacename' => 'format_suppressed_tags',
'link' => 'format_link',
'refpurpose' => 'format_refpurpose',
'title' => array(
@@ -90,6 +91,7 @@
'acronym' => 'format_acronym_text',
'function' => 'format_function_text',
'classname' => 'format_classname_text',
+ 'interfacename' => 'format_classname_text',
'varname' => array(
/* DEFAULT */ 'format_varname_text',
'fieldsynopsis' => false,
@@ -537,11 +539,11 @@
public function format_classname_text($value, $tag) {
if (($filename = $this->getClassnameLink(strtolower($value))) !== null &&
$this->cchunk["phpdoc:classref"] !== strtolower($value)) {
if ($this->chunked) {
- return '<a href="'.$filename. '.' .$this->ext.
'" class="classname">' .$value. '</a>';
+ return '<a href="'.$filename. '.' .$this->ext.
'" class="' .$tag. '">' .$value. '</a>';
}
- return '<a href="#'.$filename. '"
class="classname">'.$value.'</a>';
+ return '<a href="#'.$filename. '" class="' .$tag.
'">'.$value.'</a>';
}
- return '<b class="classname">' .$value. '</b>';
+ return '<b class="' .$tag. '">' .$value.
'</b>';
}
public function format_type_if_object_or_pseudo_text($type, $tagname) {