cvs: phd /themes/php phpdotnet.php

From: Date: Tue, 04 Dec 2007 11:36:18 +0000
Subject: cvs: phd /themes/php phpdotnet.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-526@lists.php.net to get a copy of this message
bjori Tue Dec 4 11:36:18 2007 UTC Modified files: /phd/themes/php phpdotnet.php Log: Fix links to methods (Edward Z.) http://cvs.php.net/viewvc.cgi/phd/themes/php/phpdotnet.php?r1=1.30&r2=1.31&diff_format=u Index: phd/themes/php/phpdotnet.php diff -u phd/themes/php/phpdotnet.php:1.30 phd/themes/php/phpdotnet.php:1.31 --- phd/themes/php/phpdotnet.php:1.30 Mon Nov 26 14:15:31 2007 +++ phd/themes/php/phpdotnet.php Tue Dec 4 11:36:18 2007 @@ -1,5 +1,5 @@ <?php -/* $Id: phpdotnet.php,v 1.30 2007/11/26 14:15:31 bjori Exp $ */ +/* $Id: phpdotnet.php,v 1.31 2007/12/04 11:36:18 bjori Exp $ */ abstract class phpdotnet extends PhDTheme { protected $elementmap = array( @@ -374,10 +374,23 @@ } public function format_function_text($value, $tag, $display_value = null) { - if ($display_value === null) $display_value = $value; + if ($display_value === null) { + $display_value = $value; + } + $link = strtolower(str_replace(array("__", "_", "::", "->"), array("", "-", "-", "-"), $value)); - - if ($this->CURRENT_FUNCTION === $link || !($filename = PhDHelper::getFilename("function.$link"))) { + $oop_link = strtolower(str_replace(array("_", "::", "->"), array("", ".", "."), $value)); + + if ( + ( + $this->CURRENT_FUNCTION === $link || + !($filename = PhDHelper::getFilename("function.$link")) + ) || + ( + $this->CURRENT_ID === $oop_link || + !($filename = PhDHelper::getFilename($oop_link)) + ) + ) { return '<b>' .$display_value.($tag == "function" ? "()" : ""). '</b>'; }

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