Re: oo design question - how to avoid a factory
| From: | Andrew Nagy | Date: | Tue, 21 Dec 2004 15:15:38 +0000 |
| Subject: | Re: oo design question - how to avoid a factory | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-35197@lists.php.net to get a copy of this message | ||
After playing around more with the example on the php site:
http://www.php.net/manual/en/language.oop.newref.php
I tried doing this with out the factory:
$dg =& new Structures_DataGrid(20);
And everything seems to work except for the data, but i think that is a bug somewhere because I am getting the paging data before calling any render methods.
Olivier, can you get anything to work with simply instantiating SDG as a reference?
If this could work, i would prefer demanding the user instantiate SDG as a reference rather than using the factory method.
Andrew