Re: [PHP] Re: Create collections of objects

2008-02-15 Thread Peter Ford
Emilio Astarita wrote: > Peter Ford <[EMAIL PROTECTED]> writes: > >> Emilio Astarita wrote: >>> Hi people, >>> >> A static method should still be able to set values of private members. I do >> something like: >> ... >> > > Thank you, I was not sure how to implement it. > > Another question. It w

Re: [PHP] Re: Create collections of objects

2008-02-15 Thread Emilio Astarita
Peter Ford <[EMAIL PROTECTED]> writes: > Emilio Astarita wrote: >> Hi people, >> > > A static method should still be able to set values of private members. I do > something like: > ... > Thank you, I was not sure how to implement it. Another question. It would be a better approach, making the c

[PHP] Re: Create collections of objects

2008-02-15 Thread Peter Ford
Emilio Astarita wrote: > Hi people, > > I want a class that allows create objects that get the information > consulting the DB. So, I am thinking to do something like this: > > class element { > public __construct($id,$type = 'id') { > switch($type) { > case 'id': > $where = sprin