Re: fixing extension categorization

From: Date: Tue, 06 Sep 2005 17:02:54 +0000
Subject: Re: fixing extension categorization
References: 1 2 3 4 5 6  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969369930@lists.php.net to get a copy of this message
Good start :) It would be much better to reintroduce the fixed TOC structure, since there were some intentions in the structure of the categorization (ie. basic, mostly used stuff was up in the TOC). Like text handling and variable and type handling should be above session, regardless of alphabetical order :) Two solution options: - parse the existing extensions.xml for structure - have a TOC strtucture array in the generator script Either way, bogus category tags can also be spotted this way. Goba
Yep, I agree with you, but when I started doing the script I though that would be too hard to do, but now I think that would be a better option. I'll rewrite the output part to use a simple preg_replace() to update the table. This means that you'll have to add the new sections to the file before updating it, so that new categories come in. Of course a nice solution would be a xml parser, but I don't know if I'll be inspired tomorrow :) Nuno
OK, problem fixed. The script is now much cleaner and it uses a SimpleXML iterator to update the file, thus keeping the original order. Nuno

« previous php.doc (#969369930) next »