[ Index ] |
|
Code source de Symfony 1.0.0 |
[Code source] [Imprimer] [Statistiques]
This is the base class for any builder class that is using the data model. This could be extended by classes that build SQL DDL, PHP classes, configuration files, input forms, etc.
Author: | Hans Lellelid <hans@xmpl.org> |
Poids: | 221 lignes (7 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
setBuildProperties($props) X-Ref |
Sets the [name transformed] build properties to use. param: array Property values keyed by [transformed] prop names. |
getBuildProperty($name) X-Ref |
Get a specific [name transformed] build property. param: string $name return: string |
getBuilderClass($type) X-Ref |
Imports and returns the classname of the builder class for specified 'type'. param: $type The "key" for class to load. return: string The unqualified classname. |
builderFactory(Table $table, $type) X-Ref |
Factory method to load a new builder instance based on specified type. param: Table $table param: $type The "key" for class to load. |
getFilePath($path, $classname = null, $extension = '.php') X-Ref |
Utility function to build a path for use in include()/require() statement. Supports two function signatures: (1) getFilePath($dotPathClass); (2) getFilePath($dotPathPrefix, $className); param: string $path dot-path to class or to package prefix. param: string $classname class name return: string |
__construct(Table $table) X-Ref |
Creates new instance of DataModelBuilder subclass. param: Table $table The Table which we are using to build [OM, DDL, etc.]. |
getPlatform() X-Ref |
Returns the Platform class for this table (database). return: Platform |
getDatabase() X-Ref |
Returns the database for current table. return: Database |
getTable() X-Ref |
Returns the current Table object. return: Table |
warn($msg) X-Ref |
Pushes a message onto the stack of warnings. param: string $msg The warning message. |
getWarnings() X-Ref |
Gets array of warning messages. return: array string[] |
quoteIdentifier($text) X-Ref |
Wraps call to Platform->quoteIdentifier() with a check to see whether quoting is enabled. All subclasses should call this quoteIdentifier() method rather than calling the Platform method directly. This method is used by both DataSQLBuilder and DDLBuilder, and potentially in the OM builders also, which is why it is defined in this class. param: string $text The text to quote. return: string Quoted text. |
Généré le : Fri Mar 16 22:42:14 2007 | par Balluche grâce à PHPXref 0.7 |