Can anyone think of something they currently can't achieve with the existing hooks? Something that might be solvable with a Factory class?
-- Jim
Well, say for instance I wanted to replace the built in gallery stuff with my own. I could either hack up ImageGallery, or use a different syntax for the new gallery using a parser extension. I would then have to make sure users use <mygallery></mygallery> instead of <gallery></gallery>, and if I decided I wanted to go back to regular galleries later I would have to change a bunch of wiki pages.
If I could hijack the ImageGallery class, I could replace that functionality without worrying about compatibility problems later.
Is there another way to do this? Can I override <gallery></gallery> with my own extension, or would they conflict?
V/r,
Ryan Lane