TableInterface
interface TableInterface
Table class interface.
Methods
Method to bind an associative array or object to the TableInterface instance.
Method to perform sanity checks on the TableInterface instance properties to ensure they are safe to store in the database.
Method to delete a record.
Method to get the \JDatabaseDriver object.
Method to get the primary key field name for the table.
Method to load a row from the database by primary key and bind the fields to the TableInterface instance properties.
Method to reset class properties to the defaults set in the class definition.
Method to store a row in the database from the TableInterface instance properties.
Details
boolean
bind(
mixed $src,
mixed $ignore = array())
Method to bind an associative array or object to the TableInterface instance.
This method only binds properties that are publicly accessible and optionally takes an array of properties to ignore when binding.
boolean
check()
Method to perform sanity checks on the TableInterface instance properties to ensure they are safe to store in the database.
Implementations of this interface should use this method to make sure the data they are storing in the database is safe and as expected before storage.
boolean
load(
mixed $keys = null,
boolean $reset = true)
Method to load a row from the database by primary key and bind the fields to the TableInterface instance properties.
void
reset()
Method to reset class properties to the defaults set in the class definition.
It will ignore the primary key as well as any private class properties.
boolean
store(
boolean $updateNulls = false)
Method to store a row in the database from the TableInterface instance properties.
If a primary key value is set the row with that primary key value will be updated with the instance property values. If no primary key value is set a new row will be inserted into the database with the properties from the TableInterface instance.