| [ Index ] |
|
Code source de Symfony 1.0.0 |
[Code source] [Imprimer] [Statistiques]
Baseclass for SQL DDL-building classes. DDL-building classes are those that build all the SQL DDL for a single table.
| Author: | Hans Lellelid <hans@xmpl.org> |
| Poids: | 131 lignes (4 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
| build() X-Ref |
| Builds the SQL for current table and returns it as a string. This is the main entry point and defines a basic structure that classes should follow. In most cases this method will not need to be overridden by subclasses. return: string The resulting SQL DDL. |
| getColumnDDL(Column $col) X-Ref |
| Builds the DDL SQL for a Column object. return: string |
| getColumnList($columns, $delim=',') X-Ref |
| Creates a delimiter-delimited string list of column names, quoted using quoteIdentifier(). param: array Column[] or string[] param: string $delim The delimiter to use in separating the column names. return: string |
| getDatabaseStartDDL() X-Ref |
| This function adds any _database_ start/initialization SQL. This is designed to be called for a database, not a specific table, hence it is static. return: string The DDL is returned as astring. |
| getDatabaseEndDDL() X-Ref |
| This function adds any _database_ end/cleanup SQL. This is designed to be called for a database, not a specific table, hence it is static. return: string The DDL is returned as astring. |
| Généré le : Fri Mar 16 22:42:14 2007 | par Balluche grâce à PHPXref 0.7 |