Re: Converting PHP code to class

From: Date: Sun, 18 Jan 2004 21:21:40 +0000
Subject: Re: Converting PHP code to class
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-174979@lists.php.net to get a copy of this message
Hello, 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/

« previous php.general (#174979) next »