PEAR Handbuch | ||
---|---|---|
Zurück | Nach vorne |
Copies data from an Array or object into the current object
copies all the data that relates to this table (Except keys) into the current object
Beispiel 1. Copying data from post or object
|
Copies all the data (with names the of this objects columns) from another object or array into this one.
Either validates data as Integers or strings, otherwise calls user defined validation methods
check all the objects variables to see if they are valid, by default this means is a column an integer or string, if you define methods like validateEmail(), in your extended class then it will be called to validate that rows data.
Note: that this validation depends on the PEAR validation package
Beispiel 2. validate usage
|
To add a validation routine to your extended class you should create a method with the name, ValidateXXXXXXX where XXXXX is the name of the row to validate.
Beispiel 3. validate methods
|
automatically load (include a DataObject class)
based on the config file, automatically includes the class definition for a table and returns the class name
Beispiel 4. Auto loading a tables class
|
Zurück | Zum Anfang | Nach vorne |
Automatic Table Linking | Nach oben | Debugging |