Re: Strategy
Brought to you by:
iridium
From: Martin G. <gim...@gi...> - 2002-03-15 13:43:52
|
"Max Hammond" <ma...@fl...> writes: > Hi all, >=20 > I've been tweaking things this morning, but I want to include the > new images stuff into the new code (phpweather 2). Great! =20 > What's important is that the way I'm writing stuff at the moment > relys on people having PHP4 - for example I used foreach(). I think > it's reasonable now to expect people to have php4. Any comments? It would surely make things a lot easier if we require PHP4. And now that PHP4 has been out for over 2 years I don't think it's too much to ask of people, that they upgrade to the new and improved version from PHP version 3. =20 > I intend to include the icons as core functionality rather than a > strap-on as they are at the moment. Is this okay with everyone? - so > phpweather will get the get_xyz_image() functions built straight in. That sounds like a good idea. And now that you mention it: it would be nice, if we could make a system, so that people could use different modules with PHP Weather. The icon-functionality would be one such module, and so would the verbose textual output. It should work something like this: we have the class phpweather which provides all the methods necessary to retrieve the data and cache it. The modules would then either subclass phpweather (phpweather-icon, phpweather-text, phpweather-wap, phpweather-table, etc) or perhaps it would be better if the main phpweather object had these modules as member variables. By doing it like that, they would all share the parsed METAR. What do you think about that? =2D-=20 Martin Geisler My GnuPG Key: 0xF7F6B57B See my homepage at http://www.gimpster.com/ for: PHP Weather =3D> Shows the current weather on your webpage. PHP Shell =3D> A telnet-connection (almost :-) in a PHP page. |