Re: com web/php: Removal of left menu class prefixes for method names since they're already indented within that class name: include/header.inc
include/shared-manual.inc
| From: | Levi Morrison | Date: | Tue, 08 Jan 2013 17:29:17 +0000 |
| Subject: | Re: com web/php: Removal of left menu class prefixes for method names since they're already indented within that class name: include/header.inc include/shared-manual.inc |
||
| References: | 1 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-15244@lists.php.net to get a copy of this message | ||
> @@ -575,12 +575,18 @@ function manual_setup_beta($setup) {
>
> $siblings = array();
> foreach($setup["toc"] as $entry) {
> + // We strip out any class prefix here, we only want method names
> + $methodname = $entry[1];
> + if(strpos($entry[1], '::') !== false) {
> + list($classname, $methodname) = explode('::', $entry[1]);
> + }
> $siblings[] = array(
> - "title" => $entry[1],
> + "title" => $methodname,
> "link" => $entry[0],
> "current" => $setup["this"][0] == $entry[0],
> );
> }
Note that a change like this suggests making a change whatever sets up
$setup[toc] to generate the information differently.