cvs: phd /themes/php phpdotnet.php

From: Date: Sun, 28 Dec 2008 16:45:30 +0000
Subject: cvs: phd /themes/php phpdotnet.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-2857@lists.php.net to get a copy of this message
bjori Sun Dec 28 16:45:30 2008 UTC Modified files: /phd/themes/php phpdotnet.php Log: MFB: Add descriptions to seealso functions http://cvs.php.net/viewvc.cgi/phd/themes/php/phpdotnet.php?r1=1.60&r2=1.61&diff_format=u Index: phd/themes/php/phpdotnet.php diff -u phd/themes/php/phpdotnet.php:1.60 phd/themes/php/phpdotnet.php:1.61 --- phd/themes/php/phpdotnet.php:1.60 Sat Dec 27 22:16:38 2008 +++ phd/themes/php/phpdotnet.php Sun Dec 28 16:45:30 2008 @@ -1,5 +1,5 @@ <?php -/* $Id: phpdotnet.php,v 1.60 2008/12/27 22:16:38 bjori Exp $ */ +/* $Id: phpdotnet.php,v 1.61 2008/12/28 16:45:30 bjori Exp $ */ abstract class phpdotnet extends PhDTheme { protected $elementmap = array( @@ -518,18 +518,20 @@ if ($display_value === null) { $display_value = $value; } - $rel = ""; - if ($this->format->role == "seealso") { - $rel = ' rel="rdfs-seeAlso"'; - } $ref = strtolower(str_replace(array("_", "::", "->"), array("-", "-", "-"), $value)); if (($filename = $this->getRefnameLink($ref)) !== null) { if ($this->CURRENT_ID !== $filename) { + $rel = $desc = ""; + if ($this->format->role == "seealso") { + $rel = ' rel="rdfs-seeAlso"'; + $desc = " - " . PhDHelper::getDescription($filename, true); + } + if ($this->chunked) { - return '<a href="'.$filename. '.' .$this->ext. '" class="function"'.$rel.'>' .$display_value.($tag == "function" ? "()" : ""). '</a>'; + return '<a href="'.$filename. '.' .$this->ext. '" class="function"'.$rel.'>' .$display_value.($tag == "function" ? "()" : ""). '</a>'.$desc; } - return '<a href="#'.$filename. '" class="function"'.$rel.'>' .$display_value.($tag == "function" ? "()" : ""). '</a>'; + return '<a href="#'.$filename. '" class="function"'.$rel.'>' .$display_value.($tag == "function" ? "()" : ""). '</a>'.$desc; } } elseif ($this->CURRENT_ID !== $filename) { v("No link found for $value", VERBOSE_BROKEN_LINKS);

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