Handle and manage the inserting, updating, deleting and reading of data from the database. This class works only with one record row specified by a table primary key or unique field.
Located in /model/SqlRecord.php (line 23)
Class | Description |
---|---|
miPropertiesRecord | Handle and manage deleting and reading of data from the database. |
miSqlComplexPKRecord | SQL Record managerment class for records with complex primary keys |
miSqlRecord constructor. It takes two parameters table name and table primary key
Example:
Delete a record in the db table
Gets the value of a field
Example:
Gets the primary key column of the table that this SQLRecord uses
Insert a record in the db table It also updates the the PK value of the inserted row
Read a record where the specified field represented by $key is equal to the value represented by $value If there are is than one record matching the first one will be read in
Example:
Read a record using the specified primary key value
Example:
Sets the value of a field
Example:
Directly set the data row
Example:
Update a record in the db table
Documentation generated on Thu, 08 May 2008 16:57:35 +0300 by phpDocumentor 1.4.1