|
add a class |
How to add a class depends on your code management scheme. Here we assume the very simplest scheme, with only a single class in the application domain classFolder.
If instances of the class should be , copy 'classTemplate.php' from the 'pnt/db' classFolder to the application domain classFolder. If instances of the class should not be persistent, copy 'classTemplate.php from the 'pnt' classFolder.
Rename the class file to the name of the class prefixed with 'class' and extended with '.php'.
Edit the class file. Replace the class name and the constructor name. If applicable, correct database table name in the 'getTableName' method. Set the name of the classFolder in the 'getClassDir' method. Add creation calls to 'initPropertyDescriptors' method. Save the class file.
|
|