Solutions Open Source

Référence de la classe dbTable

Graphe d'héritage de dbTable:

Inheritance graph
[légende]
Graphe de collaboration de dbTable:

Collaboration graph
[légende]

Liste de tous les membres

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


Documentation des fonctions membres

dbTable::dbTable ( &$  parent,
attributes = NULL 
)

Iniitializes a new table object.

Paramètres:
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 
)

XML Callback to process CDATA elements

private

Réimplémentée à partir de dbObject.

dbTable::_tag_close ( &$  parser,
tag 
)

XML Callback to process end elements

private

Réimplémentée à partir de dbObject.

& dbTable::addIndex ( attributes  ) 

Adds an index to a table object

Paramètres:
array $attributes Index attributes
Renvoie:
object dbIndex object

& dbTable::addData ( attributes  ) 

Adds data to a table object

Paramètres:
array $attributes Data attributes
Renvoie:
object dbData object

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:

Paramètres:
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
Renvoie:
array Field specifier 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.

Paramètres:
string $field Field name
string $opt ADOdb field option
mixed $value Field option value
Renvoie:
array Field specifier array

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.

Paramètres:
string $opt Table option
Renvoie:
array Options

dbTable::create ( &$  xmls  ) 

Generates the SQL that will create the table in the database

Paramètres:
object $xmls adoSchema object
Renvoie:
array Array containing table creation SQL

dbTable::drop (  ) 

Marks a field or table for destruction

dbTable::dbTable ( &$  parent,
attributes = NULL 
)

Iniitializes a new table object.

Paramètres:
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 
)

XML Callback to process CDATA elements

private

Réimplémentée à partir de dbObject.

dbTable::_tag_close ( &$  parser,
tag 
)

XML Callback to process end elements

private

Réimplémentée à partir de dbObject.

& dbTable::addIndex ( attributes  ) 

Adds an index to a table object

Paramètres:
array $attributes Index attributes
Renvoie:
object dbIndex object

& dbTable::addData ( attributes  ) 

Adds data to a table object

Paramètres:
array $attributes Data attributes
Renvoie:
object dbData object

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:

Paramètres:
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
Renvoie:
array Field specifier 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.

Paramètres:
string $field Field name
string $opt ADOdb field option
mixed $value Field option value
Renvoie:
array Field specifier array

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.

Paramètres:
string $opt Table option
Renvoie:
array Options

dbTable::create ( &$  xmls  ) 

Generates the SQL that will create the table in the database

Paramètres:
object $xmls adoSchema object
Renvoie:
array Array containing table creation SQL

dbTable::drop (  ) 

Marks a field or table for destruction


Documentation des données membres

dbTable::$name

dbTable::$fields = array()

dbTable::$indexes = array()

dbTable::$opts = array()

dbTable::$current_field

dbTable::$drop_table

dbTable::$drop_field = array()

dbTable::$currentPlatform = true


La documentation de cette classe a été générée à partir des fichiers suivants :
Généré le Fri Aug 31 11:40:53 2007 pour OBLADY - Typo3 API v4.1.2 par  doxygen 1.5.3