[ Index ]
 

Code source de Symfony 1.0.0

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

title

Body

[fermer]

/lib/vendor/propel/map/ -> DatabaseMap.php (sommaire)

(pas de description)

Poids: 127 lignes (4 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

DatabaseMap:: (6 méthodes):
  __construct()
  containsTable()
  getName()
  getTable()
  getTables()
  addTable()


Classe: DatabaseMap  - X-Ref

DatabaseMap is used to model a database.

GENERAL NOTE
------------
The propel.map classes are abstract building-block classes for modeling
the database at runtime.  These classes are similar (a lite version) to the
propel.engine.database.model classes, which are build-time modeling classes.
These classes in themselves do not do any database metadata lookups, but instead
are used by the MapBuilder classes that were generated for your datamodel. The
MapBuilder that was created for your datamodel build a representation of your
database by creating instances of the DatabaseMap, TableMap, ColumnMap, etc.
classes. See propel/templates/om/php5/MapBuilder.tpl and the classes generated
by that template for your datamodel to further understand how these are put
together.

__construct($name)   X-Ref
Constructor.

param: string $name Name of the database.

containsTable($name)   X-Ref
Does this database contain this specific table?

param: string $name The String representation of the table.
return: boolean True if the database contains the table.

getName()   X-Ref
Get the name of this database.

return: string The name of the database.

getTable($name)   X-Ref
Get a TableMap for the table by name.

param: string $name Name of the table.
return: TableMap A TableMap

getTables()   X-Ref
Get a TableMap[] of all of the tables in the database.

return: array A TableMap[].

addTable($tableName)   X-Ref
Add a new table to the database by name.  It creates an empty
TableMap that you need to populate.

param: string $tableName The name of the table.
return: TableMap The newly created TableMap.



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