Re: [PHP] $this = new Class();

2009-05-07 Thread Richard Quadling
2009/5/7 Richard Quadling rquadl...@googlemail.com: 2009/4/30 Olivier Lalonde olalo...@gmail.com: Hi all, Since I can't do $this = new Class(); within my class (it gives an error), I was looking for ways to get the same result by other means. I am actually working on an ORM and trying to

Re: [PHP] $this = new Class();

2009-05-07 Thread Richard Quadling
2009/4/30 Olivier Lalonde olalo...@gmail.com: Hi all, Since I can't do $this = new Class(); within my class (it gives an error), I was looking for ways to get the same result by other means. I am actually working on an ORM and trying to implement lazy loading. $book = $orm-getBook('id');

Re: [PHP] creating new class from wrapper class (OOP question)

2006-01-19 Thread Jochem Maas
Henrik Gemal wrote: In a image gallery I have to class'es: class GPicFilePicture extends GPicFileType class GPicFileMovie extends GPicFileType both of them are based on: abstract class GPicFileType In my code I need to create a new GPicFilePicture. To avoid duplicated code I've create a

Re: [PHP] creating new class from wrapper class (OOP question)

2006-01-19 Thread Richard Lynch
On Tue, January 17, 2006 8:56 am, Henrik Gemal wrote: In a image gallery I have to class'es: class GPicFilePicture extends GPicFileType class GPicFileMovie extends GPicFileType both of them are based on: abstract class GPicFileType In my code I need to create a new GPicFilePicture. To