Patch for DataObject's class generator

From: Date: Mon, 13 Dec 2004 12:29:48 +0000
Subject: Patch for DataObject's class generator
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-35031@lists.php.net to get a copy of this message
Hi devs, with approval from Alan I have created a patch for DO's class generator on top of the current CVS version to optionally generate getter and setter methods. The source code can be found here: http://www.zilleon.com/PEAR/DB/DataObject/Generator.php.txt You can download the file as a zip archive here: http://www.zilleon.com/PEAR/DB/DataObject/Generator.zip My changes are enclosed by a comment line (/*** ADDED BY TROEHR ***/). There are two new methods at the bottom of the file and two method calls in _generateClassTable(). When run under PHP5 all methods will be declared public. To let DO generate the getters/setters just add two lines to your .ini: [DB_DataObject] ... generate_getters = true generate_setters = true Any comments are greatly appreciated! Thanks and best regards, Torsten Roehr

« previous php.pear.dev (#35031) next »