Implements interfaces:
FrameworkOnFramework Table class. The Table is one part controller, one part model and one part data adapter. It's supposed to handle operations for single records.
Located in /libraries/fof/table/table.php (line 34)
JObject | --FOFTable
A list of tables in the database
A list of table fields, keyed per table
The configuration parameters array
An instance of FOFConfigProvider to provision configuration overrides
List of default behaviors to apply to the table
The known fields for this table
FOFTableDispatcherBehavior for dealing with extra behaviors
The asset key for items in this table. It's usually something in the com_example.viewname format. They asset name will be this key appended with the item's ID, e.g. com_example.viewname.123
If set to true, it enabled automatic checks on fields based on columns properties
Array with alias for "special" columns such as ordering, hits etc etc
JDatabaseDriver object.
Does the resource support joomla tags?
Indicator that the tables have been locked.
Extended query including joins with other tables
The rules associated with this record.
Array with fields that should be skipped by automatic checks
Table alias used in queries
Does the table actually exist? We need that to avoid PHP notices on table-less views.
The prefix for the table class
Name of the database table to model.
Name of the primary key field in the table.
Should rows be tracked as ACL assets?
If this is set to true, it triggers automatically plugin events for table actions
Inherited from JObject
JObject::$_errors
Add a filesystem path where FOFTable should search for table class files.
You may either pass a string or an array of paths.
Force an instance inside class cache. Setting arguments to null nukes all or part of the cache
Returns a static object instance of a particular table type
Returns a static object instance of a particular table type
Class Constructor.
Adds a behavior to the table
Add a field to the known fields array
Method to bind an associative array or object to the FOFTable instance.This method only binds properties that are publicly accessible and optionally takes an array of properties to ignore when binding.
Generic check for whether dependancies exist for this object in the db schema
Based on fields properties (nullable column), checks if the field is required or not
Check in (unlock) a record
Check out (lock) a record
Copy (duplicate) one or more records
Delete a record
Loads the asset table related to this table.
This will help tests, too, since we can mock this function.
Method to compute the default name of the asset.
The default name is in the form table_name.id where id is the value of the primary key of the table.
Method to compute the default name of the asset.
The default name is in the form table_name.id where id is the value of the primary key of the table.
Method to get the parent asset under which to register this one.
By default, all assets are registered to the ROOT node with ID, which will default to 1 if none exists. The extended class can define a table and id to lookup. If the asset does not exist it will be created.
Method to return the title to use for the asset table. In
tracking the assets a title is kept for each asset so that there is some context available in a unified access manager. Usually this would just return $this->title or $this->name or whatever is being used for the primary name of the row. If this method is not overridden, the asset name is used.
Method to return the real name of a "special" column such as ordering, hits, published etc etc. In this way you are free to follow your db naming convention and use the built in Joomla functions.
Get the header for exporting item list to CSV
Method to get the next ordering value for a group of rows defined by an SQL WHERE clause.
This is useful for placing a new item last in a group of items in the table.
Get a JOIN query, used to join other tables
Get the columns from a database table.
Method to get the database table name for the class.
Register a hit on a record
Method to check if the record is treated as an ACL asset
Is a record locked?
Is the field quoted?
Method to load a row from the database by primary key and bind the fields to the FOFTable instance properties.
Method to move a row in the ordering sequence of a group of rows defined by an SQL WHERE clause.
Negative numbers move the row up in the sequence and positive numbers move it down.
Normalizes the fields, returning an associative array with all the fields.
Ie array('foobar as foo, bar') becomes array('foobar' => 'foo', 'bar' => 'bar')
The event which runs after binding data to the class
The even which runs after copying a record
The event which runs after deleting a record
The event which runs after hitting a record
The event which runs after loading a record from the database
The event which runs after the object is reset to its default values.
The event which runs after storing (saving) data to the database
The event which runs before binding data to the table
NOTE TO 3RD PARTY DEVELOPERS:
When you override the following methods in your child classes, be sure to call parent::method *AFTER* your code, otherwise the plugin events do NOT get triggered
Example: protected function onAfterStore(){ // Your code here return parent::onAfterStore() && $your_result; }
Do not do it the other way around, e.g. return $your_result && parent::onAfterStore() Due to PHP short-circuit boolean evaluation the parent::onAfterStore() will not be called if $your_result is false.
The even which runs before copying a record
The event which runs before deleting a record
The event which runs before hitting a record
The event which runs before moving a record
The event which runs before a record is (un)published
The event which runs before reordering a table
The even which runs before the object is reset to its default values.
The event which runs before storing (saving) data to the database
Publish or unpublish records
Remove a field from the known fields array
Change the ordering of the records of the table
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.
Method to provide a shortcut to binding, checking and storing a FOFTable
instance to the database table. The method will check a row in once the data has been stored and if an ordering filter is present will attempt to reorder the table rows based on the filter. The ordering filter is an instance property name. The rows that will be reordered are those whose value matches the FOFTable instance for the property specified.
This method sets the asset key for the items of this table. Obviously, it is only meant to be used when you have a table with an asset field.
Method to register a column alias for a "special" column.
Method to set the JDatabaseDriver object.
Sets the has tags switch state
Replace the input object of this table with the provided FOFInput object
Replace the entire known fields array
Sets the query with joins to other tables
Method to set rules for the record.
Sets fields to be skipped from automatic checks.
Set the class prefix
Sets the events trigger switch state
Method to store a row in the database from the FOFTable 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 FOFTable instance.
Export the item as a CSV line
Inherited From JObject
JObject::__construct()
JObject::def()
JObject::get()
JObject::getError()
JObject::getErrors()
JObject::getProperties()
JObject::set()
JObject::setError()
JObject::setProperties()
JObject::__toString()
Documentation generated on Tue, 19 Nov 2013 15:15:02 +0100 by phpDocumentor 1.4.3