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: | Hannes Magnusson | Date: | Tue, 08 Jan 2013 17:32:25 +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 2 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-15246@lists.php.net to get a copy of this message | ||
On Wed, Jan 9, 2013 at 1:29 AM, Levi Morrison <morrison.levi@gmail.com> wrote:
>> @@ -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.
It seems like a more logical place to make the change indeed. PhD has
the internal and complete knowledge of the data, while this page only
knows about this page and nothing else really
-Hannes