On 01/18/2004 05:57 PM, Joe Harman wrote:
Just curious if anyone here would be interested in helping me convert my PHP Calendar into a class... I am not to good at it... But I figure if someone would like to do it they could get this nifty calendar program that I made... Nice little trade... Let me know and I will forward the code.
All you need to do is basically include all the functions and global variables that it uses withing class some_calendar_class { ... }; .
Then change all internal accesses to those functions and variable by preceeding them with $this-> .
If you do not want to go through all this trouble, you may find some calendar classes ready for you here:
http://www.phpclasses.org/browse.html/class/9/top/rated.html
--
Regards, Manuel Lemos
Free ready to use OOP components written in PHP http://www.phpclasses.org/
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php