Export table data to SQL. More...
Public Member Functions | |
| __construct ($tables=null) | |
| Class constructor. | |
| set_tables ($item) | |
| Set tables to export. | |
| export () | |
| Export everything. | |
| export_structure ($table=null) | |
| Export just the table structure. | |
| export_data ($table=null) | |
| Export just the table data. | |
| export_schema ($table=null) | |
| Export just the schema (if the table has UI information). | |
| export_uninstall ($table=null) | |
| Export an uninstall script. | |
| get_auto_increment ($table_name) | |
| Get the auto increment field. | |
Public Member Functions inherited from Base | |
| __call ($function, $params) | |
| The 'magic' call method will get/set for us invoked when the interpreter can not find a method the user is asking for. | |
| set_parameters ($arguments) | |
| Set variables from an array to member fields requires $this->optional_arguments or $this->required_arguments to have been set by the subclass. | |
Static Public Member Functions | |
| static | strip_auto_fields ($item, $field_to_skip='', $default_fields=array()) |
| Strip out the auto increment fields. | |
Protected Attributes | |
| $schema_name = '' | |
| name of database | |
| $db = '' | |
| database object | |
| $tables = array() | |
| Tables to export. | |
Protected Attributes inherited from Base | |
| $optional_arguments = array() | |
| Array of options that can be set to variables. | |
| $required_arguments = array() | |
| Array of options that need to be set to variables. | |
Export table data to SQL.
| Export::__construct | ( | $tables = null | ) |
Class constructor.
Sets the tables and the database connection.
| Export::export | ( | ) |
Export everything.
Returns a SQL string.
| Export::set_tables | ( | $item | ) |
Set tables to export.
This can either be an array, or a single table name.
|
static |
Strip out the auto increment fields.
(They will be assigned when the script is run.)
1.8.1.1