Re: bugs.php interface
| From: | Sterling Hughes | Date: | Wed, 06 Sep 2000 18:48:48 +0000 |
| Subject: | Re: bugs.php interface | ||
| References: | 1 2 3 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-1243@lists.php.net to get a copy of this message | ||
>
> ""Sterling Hughes"" <sterling@designmultimedia.com> wrote in
> message news:033201c01825$e36b71e0$6bd6fea9@pavilion...
> >
> > > One wish: It would be very cool if when you select top
> category (like
> > > "Function specific") in "Display", you'd also get all
> sub-categories in
> > > the search. I know it's not so simple, but it'd be good.
> > >
> >
> > It requires a rewrite of the items array, but I'll do
> that...
>
> Note that all of the section headings have an asterix
> appended to the start.
> This should let us get all of the children for the item
> fairly easily.
>
> - Zak
>
Yes, we could do that, but the approach is just a little too hacky for me,
instead why not change the array to a more respectable data structure, something
like:
$items = array('Any',
'General Issues' =>
array('Feature/Change Request',
'Documentation Problem',
'Reproducible Crash',
'Scripting Engine Problem',
'Performance Problem'),
'Installation and Configuration' =>
array('Compile Problem' =>
array('Compile Failure',
'Compile Warning'),
'Web Server Problem' =>
array('Apache Related',
'IIS Related',
'PWS Related',
'Other web server'),
'Configuration Issues' =>
array('Dynamic Loading Related',
'PHP options and information functions'),
'Function Specific' =>
array('Calendar Functions' =>
array('Calendar Extension Related',
'ICAP Related',
'MCAL Related'),
array('Directory/Filesystem Functions' =>
array('Directory Related',
'Filesystem Related'),
.... You got the idea...
And then generate the content based on that data structure?
-Sterling