[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/vendor/creole/metadata/ -> TableInfo.php (sommaire)

Represents a table.

Author: Hans Lellelid <hans@xmpl.org>
Version: $Revision: 1.16 $
Poids: 305 lignes (9 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 22 fonctions

  __construct()
  __sleep()
  __wakeup()
  initVendorSpecificInfo()
  getPrimaryKey()
  getColumn()
  hasColumn()
  getColumns()
  getForeignKey()
  getForeignKeys()
  getIndex()
  getIndexes()
  getIndices()
  getName()
  toString()
  foreignKeysLoaded()
  primaryKeyLoaded()
  columnsLoaded()
  indexesLoaded()
  getVendorSpecificInfo()
  addColumn()
  getDatabase()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

__construct(DatabaseInfo $database, $name)   X-Ref

param: string $table The table name.
param: string $database The database name.
param: resource $dblink The db connection resource.

__sleep()   X-Ref
This "magic" method is invoked upon serialize().
Because the Info class hierarchy is recursive, we must handle
the serialization and unserialization of this object.

return: array The class variables that should be serialized (all must be public!).

__wakeup()   X-Ref
This "magic" method is invoked upon unserialize().
This method re-hydrates the object and restores the recursive hierarchy.


initVendorSpecificInfo()   X-Ref
Pas de description

getPrimaryKey()   X-Ref
Get parimary key in this table.

return: array ForeignKeyInfo[]

getColumn($name)   X-Ref
Get the ColumnInfo object for specified column.

param: string $name The column name.
return: ColumnInfo

hasColumn($name)   X-Ref
Return whether table contains specified column.

param: string $name The column name.
return: boolean

getColumns()   X-Ref
Get array of columns for this table.

return: array ColumnInfo[]

getForeignKey($name)   X-Ref
Get specified fk for this table.

param: string $name The foreign key name to retrieve.
return: ForeignKeyInfo

getForeignKeys()   X-Ref
Get all foreign keys.

return: array ForeignKeyInfo[]

getIndex($name)   X-Ref
Gets the IndexInfo object for a specified index.

param: string $name The index name to retrieve.
return: IndexInfo

getIndexes()   X-Ref
Get array of IndexInfo objects for this table.

return: array IndexInfo[]

getIndices()   X-Ref
Alias for getIndexes() method.

return: array

getName()   X-Ref
Get table name.

return: string

toString()   X-Ref

return: string

foreignKeysLoaded()   X-Ref
Pas de description

primaryKeyLoaded()   X-Ref
Pas de description

columnsLoaded()   X-Ref
Pas de description

indexesLoaded()   X-Ref
Pas de description

getVendorSpecificInfo()   X-Ref
Get vendor specific optional information for this table.

return: array vendorSpecificInfo[]

addColumn(ColumnInfo $column)   X-Ref
Pas de description

getDatabase()   X-Ref
Pas de description



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7