Re: Re: [PEPr] Proposal for Database::DB_Table
| From: | Paul M Jones | Date: | Wed, 07 Jan 2004 17:47:28 +0000 |
| Subject: | Re: Re: [PEPr] Proposal for Database::DB_Table | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-24868@lists.php.net to get a copy of this message | ||
Greg,
As ever: sweeeet. Will start the move to a factory pattern immediately if not sooner.
-- Paul M. Jones pmjones@ciaweb.net Savant: the simple alternative to Smarty. http://phpsavant.com/class bravo extends alpha {function __construct($args) { // do other stuff }function &Factory($args, $classname = 'bravo') { $x = &parent::Factory($args, $classname); return $x; }} // returns an 'alpha' object, not a 'bravo' $bravo =& bravo::Factory($args); // returns a 'bravo' object $bravo =& bravo::Factory($args, 'bravo'); ?>