AutoCRUD CRUD Class
This class is used for the CRUD functionality (such as insert, update, delete)
Located in /crud.inc.php (line 18)
Current Page
Set the current page of records to be selected
Fields Array
An array of all the fields in the table
Indexes
An array of all the indexes of this table
Primary Key Field
Holds the name of the primary key field of the table
Object Name
Holds the name of the CRUD object (mainly used to handle aliases)
Numeric Fields
An array of all the numeric fields of this table
Custom ORDER BY
This property should be used to set a custom ORDER BY clause when selecting records
Paginate Results
Set to true if you want to paginate the results, and false if you don't
Records Per Page
Set how many records should be selected per page (when paging is enabled)
Required Fields
An array of all the fields that are required for this table (set to 'NOT NULL')
Table Name
Holds the table name of the CRUD object
Total Pages
The total number of pages that are available
Total Records
The total number of records that matched the last query
Custom WHERE
This property should be used to set a custom WHERE clause when updating, deleting or selecting
Sets the table name of the CRUD object
Used to add a new alias for the CRUD object
Used to setup a new relationship with another table
Used to delete an existing record, like this:
Used to get a single record, like this:
Returns the name of the CRUD object (mainly used with aliases)
Returns a relationship object with another table
Returns all the relationships that have been set with other table
Used to insert a new record, like this:
Used to get related records from another table when selecting
Raw MySQL Function
Raw MySQL Function
Used to check whether a relationship with another table exists
Used to select a list of records, like this:
Sets the parent of this CRUD object
Used to check if a unique error happened
Documentation generated on Wed, 14 Jun 2006 14:08:42 +0200 by phpDocumentor 1.3.0RC4