Skip to content
abidibo edited this page Mar 21, 2012 · 10 revisions

The model describes the data structure and gives read and write access to them. The model properties always includes the database fields of the table that describes the model. The model class is extended by all specific module models. It acts like an interface to the database table which stores the module data and so has the getter and setter methods to set and retrieve properties (field values), the save and delete action methods to perform database actions (insert, update and delete statements) and the init methods to instantiate the object and set all its properties reading the field values from db.