Re: [PHP] the class as a namespace

2008-05-15 Thread Iv Ray
Richard Heyes wrote: > That's a common use of static classes. Eg: > > HTTP::Redirect($url); > > In fact this (from the article I've read) is exactly how namespaces will > look like. So in the above example, HTTP could be either a namespace or > a class. Right. Namespaces do look similar. And PEAR

[PHP] the class as a namespace

2008-05-15 Thread Iv Ray
Is there a notion of the class as a namespace? My understanding is that the namespaces are intended to help organize the classes in large projects (and are not perfect). Is it considered good style to use a class simply to box related functions? For instance, a class called "files", contains