

Fonctions membres publiques | |
| dbTable (&$parent, $attributes=NULL) | |
| _tag_open (&$parser, $tag, $attributes) | |
| _tag_cdata (&$parser, $cdata) | |
| _tag_close (&$parser, $tag) | |
| & | addIndex ($attributes) |
| & | addData ($attributes) |
| addField ($name, $type, $size=NULL, $opts=NULL) | |
| addFieldOpt ($field, $opt, $value=NULL) | |
| addTableOpt ($opt) | |
| create (&$xmls) | |
| drop () | |
| dbTable (&$parent, $attributes=NULL) | |
| _tag_open (&$parser, $tag, $attributes) | |
| _tag_cdata (&$parser, $cdata) | |
| _tag_close (&$parser, $tag) | |
| & | addIndex ($attributes) |
| & | addData ($attributes) |
| addField ($name, $type, $size=NULL, $opts=NULL) | |
| addFieldOpt ($field, $opt, $value=NULL) | |
| addTableOpt ($opt) | |
| create (&$xmls) | |
| drop () | |
Attributs publics | |
| $name | |
| $fields = array() | |
| $indexes = array() | |
| $opts = array() | |
| $current_field | |
| $drop_table | |
| $drop_field = array() | |
| $currentPlatform = true | |
| dbTable::dbTable | ( | &$ | parent, | |
| $ | attributes = NULL | |||
| ) |
Iniitializes a new table object.
| string | $prefix DB Object prefix | |
| array | $attributes Array of table attributes. |
| dbTable::_tag_open | ( | &$ | parser, | |
| $ | tag, | |||
| $ | attributes | |||
| ) |
XML Callback to process start elements. Elements currently processed are: INDEX, DROP, FIELD, KEY, NOTNULL, AUTOINCREMENT & DEFAULT.
private
Réimplémentée à partir de dbObject.
| dbTable::_tag_cdata | ( | &$ | parser, | |
| $ | cdata | |||
| ) |
| dbTable::_tag_close | ( | &$ | parser, | |
| $ | tag | |||
| ) |
| & dbTable::addIndex | ( | $ | attributes | ) |
Adds an index to a table object
| array | $attributes Index attributes |
| & dbTable::addData | ( | $ | attributes | ) |
Adds data to a table object
| array | $attributes Data attributes |
| dbTable::addField | ( | $ | name, | |
| $ | type, | |||
| $ | size = NULL, |
|||
| $ | opts = NULL | |||
| ) |
Adds a field to a table object
$name is the name of the table to which the field should be added. $type is an ADODB datadict field type. The following field types are supported as of ADODB 3.40:
| string | $name Name of the table to which the field will be added. | |
| string | $type ADODB datadict field type. | |
| string | $size Field size | |
| array | $opts Field options array |
| dbTable::addFieldOpt | ( | $ | field, | |
| $ | opt, | |||
| $ | value = NULL | |||
| ) |
Adds a field option to the current field specifier
This method adds a field option allowed by the ADOdb datadict and appends it to the given field.
| string | $field Field name | |
| string | $opt ADOdb field option | |
| mixed | $value Field option value |
| dbTable::addTableOpt | ( | $ | opt | ) |
Adds an option to the table
This method takes a comma-separated list of table-level options and appends them to the table object.
| string | $opt Table option |
| dbTable::create | ( | &$ | xmls | ) |
Generates the SQL that will create the table in the database
| object | $xmls adoSchema object |
| dbTable::drop | ( | ) |
Marks a field or table for destruction
| dbTable::dbTable | ( | &$ | parent, | |
| $ | attributes = NULL | |||
| ) |
Iniitializes a new table object.
| string | $prefix DB Object prefix | |
| array | $attributes Array of table attributes. |
| dbTable::_tag_open | ( | &$ | parser, | |
| $ | tag, | |||
| $ | attributes | |||
| ) |
XML Callback to process start elements. Elements currently processed are: INDEX, DROP, FIELD, KEY, NOTNULL, AUTOINCREMENT & DEFAULT.
private
Réimplémentée à partir de dbObject.
| dbTable::_tag_cdata | ( | &$ | parser, | |
| $ | cdata | |||
| ) |
| dbTable::_tag_close | ( | &$ | parser, | |
| $ | tag | |||
| ) |
| & dbTable::addIndex | ( | $ | attributes | ) |
Adds an index to a table object
| array | $attributes Index attributes |
| & dbTable::addData | ( | $ | attributes | ) |
Adds data to a table object
| array | $attributes Data attributes |
| dbTable::addField | ( | $ | name, | |
| $ | type, | |||
| $ | size = NULL, |
|||
| $ | opts = NULL | |||
| ) |
Adds a field to a table object
$name is the name of the table to which the field should be added. $type is an ADODB datadict field type. The following field types are supported as of ADODB 3.40:
| string | $name Name of the table to which the field will be added. | |
| string | $type ADODB datadict field type. | |
| string | $size Field size | |
| array | $opts Field options array |
| dbTable::addFieldOpt | ( | $ | field, | |
| $ | opt, | |||
| $ | value = NULL | |||
| ) |
Adds a field option to the current field specifier
This method adds a field option allowed by the ADOdb datadict and appends it to the given field.
| string | $field Field name | |
| string | $opt ADOdb field option | |
| mixed | $value Field option value |
| dbTable::addTableOpt | ( | $ | opt | ) |
Adds an option to the table
This method takes a comma-separated list of table-level options and appends them to the table object.
| string | $opt Table option |
| dbTable::create | ( | &$ | xmls | ) |
Generates the SQL that will create the table in the database
| object | $xmls adoSchema object |
| dbTable::drop | ( | ) |
Marks a field or table for destruction
| dbTable::$name |
| dbTable::$fields = array() |
| dbTable::$indexes = array() |
| dbTable::$opts = array() |
| dbTable::$current_field |
| dbTable::$drop_table |
| dbTable::$drop_field = array() |
| dbTable::$currentPlatform = true |
1.5.3