Re: [PHP] Re: class structure.

2005-01-20 Thread Jason Barnett
Richard Lynch wrote: Jason Barnett wrote: Think of declaration of properties and methods as a "contract". When something is public it is available to all of PHP. When it is private it is only usable by the class that you define it in. When it is protected it is a hybrid; it is usable to the clas

Re: [PHP] Re: phppatterns.com, Nice idea, shame about the site (was Re: [PHP] Re: class structure.)

2005-01-20 Thread Jason Barnett
Ben Edwards wrote: ... http://phppatterns.com/index.php/article/archive/1/ Cool, thats the type of thing. Why don't you have a link at the top with something like 'patterns directory' or alternativly have a 'about us' link with the stuff at phppatterns and use phppatterns for the paterns director

Re: [PHP] Re: class structure.

2005-01-20 Thread Richard Lynch
Jason Barnett wrote: > Think of declaration of properties and methods as a "contract". When > something is public it is available to all of PHP. When it is private > it is only usable by the class that you define it in. When it is > protected it is a hybrid; it is usable to the class that define

Re: [PHP] Re: phppatterns.com, Nice idea, shame about the site (was Re: [PHP] Re: class structure.)

2005-01-20 Thread Ben Edwards
On Thu, 20 Jan 2005 11:55:37 -0500, Jason Barnett <[EMAIL PROTECTED]> wrote: > Ben Edwards wrote: > > On Thu, 20 Jan 2005 09:37:37 -0500, Jason Barnett > > <[EMAIL PROTECTED]> wrote: > > > >>Dustin Krysak wrote: > >> > >>>Hi there, I am pretty new to writing classes (and pretty new to PHP > >>>itse

[PHP] Re: phppatterns.com, Nice idea, shame about the site (was Re: [PHP] Re: class structure.)

2005-01-20 Thread Jason Barnett
Ben Edwards wrote: On Thu, 20 Jan 2005 09:37:37 -0500, Jason Barnett <[EMAIL PROTECTED]> wrote: Dustin Krysak wrote: Hi there, I am pretty new to writing classes (and pretty new to PHP itself), but I was wondering what was the best format for constructing There are a few general patterns that show

[PHP] phppatterns.com, Nice idea, shame about the site (was Re: [PHP] Re: class structure.)

2005-01-20 Thread Ben Edwards
On Thu, 20 Jan 2005 09:37:37 -0500, Jason Barnett <[EMAIL PROTECTED]> wrote: > Dustin Krysak wrote: > > Hi there, I am pretty new to writing classes (and pretty new to PHP > > itself), but I was wondering what was the best format for constructing > > There are a few general patterns that show up t

[PHP] Re: class structure.

2005-01-20 Thread Jason Barnett
Dustin Krysak wrote: Hi there, I am pretty new to writing classes (and pretty new to PHP itself), but I was wondering what was the best format for constructing There are a few general patterns that show up time after time. They happen so often that there are formal names for them. This isn't r