I've been thinking of writing a recipe to implement the YouSendIt clone I mentioned on the list a few months ago. In my mind, what would be ideal would be to have an (:attachlist...:) and a (:filelist ...:) directive that would use much of the same code as pagelist, and have most of the same features, including the fmt=... option.
Looking over the pagelist.php code, it seems clear that it mostly does what I want, but in a way that makes it hard to reuse. So, I've been wondering if I shouldn't rewrite it to use php classes in order to make it easier to repurpose. Right now the only thing stopping me is fear that there was some good reason it wasn't done this way in the first place. I've not worked with php's classes much (although I'm completely familiar with object oriented programming) so I don't know if there are major overhead issues or nasty gotchas involved in how classes work under PHP. If it were any other directive than pagelist, I wouldn't worry about it, but thats one routine that gets very heavy use in PmWiki, and I'd hate to degrade its performance in any significant way. _______________________________________________ pmwiki-devel mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-devel
