[Netjuke-devel] Major Codegen Changes In
Status: Beta
Brought to you by:
blakewatters
|
From: Blake W. <sb...@ne...> - 2005-01-14 20:47:15
|
I've just created a new cut of the Netjuke code generator that addresses some design flaws in the old implementation. All generated NetjukeObject classes are now kept in the /objects sub-directory of the main tree and this directory is marked to be ignored by subversion. The generated classes are now more intelligent in their identification of the PHP data types the columns map to, as well miscellaneous other improvements. All custom code can be placed in the corresponding class generated inside the main classes/ sub-directory. To begin working with the current sources, you'll have to run generate-classes.php after the initial bootstrap.php to fully configure your environment. Bootstrap.php will likely be changed to populate-libraries.php or something similar and a top level bootstrap script that initializes the libraries, installs the database interactively, and generates the object classes will be dropped in. The only remaining issues for code generation is the automated generation of unit tests for all NetjukeObject derived classes and the eventual replacement of the online DB with an offline format -- likely the XML schema provided by adodb so we are less MySQL focused. This will be post beta1 issue, we're golden for now. Blake |