Public Member Functions | |
| __construct ($db, $model=null) | |
| getGenerator () | |
| createTables () | |
| dropTables () | |
Static Public Member Functions | |
| static | quoteColumn ($col, $db) |
Public Attributes | |
| $model = null | |
| $schema = null | |
Private Attributes | |
| $con = null | |
| Pluf_DB_Schema::__construct | ( | $ | db, | |
| $ | model = null | |||
| ) |
| Pluf_DB_Schema::getGenerator | ( | ) |
Get the schema generator.
| Pluf_DB_Schema::createTables | ( | ) |
Create the tables and indexes for the current model.
| Pluf_DB_Schema::dropTables | ( | ) |
Drop the tables and indexes for the current model.
| static Pluf_DB_Schema::quoteColumn | ( | $ | col, | |
| $ | db | |||
| ) | [static] |
Given a column name or a string with column names in the format "column1, column2, column3", returns the escaped correctly quoted column names. This is good for index creation.
| string | Column | |
| Pluf_DB | DB handler |
Pluf_DB_Schema::$con = null [private] |
Database connection object.
| Pluf_DB_Schema::$model = null |
Model from which the schema is generated.
| Pluf_DB_Schema::$schema = null |
Schema generator object corresponding to the database.