| [ Index ] |
|
Code source de Symfony 1.0.0 |
[Code source] [Imprimer] [Statistiques]
CRUD generator. This class generates a basic CRUD module.
| Author: | Fabien Potencier <fabien.potencier@symfony-project.com> |
| Version: | SVN: $Id: sfPropelCrudGenerator.class.php 2342 2006-10-06 07:19:22Z chtito $ |
| Poids: | 447 lignes (12 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
| generate($params = array() X-Ref |
| Generates classes and templates in cache. param: array The parameters return: string The data to put in configuration cache |
| getRetrieveByPkParamsForAction($indent) X-Ref |
| Returns PHP code for primary keys parameters. param: integer The indentation value return: string The PHP code |
| getMethodParamsForGetOrCreate() X-Ref |
| Returns PHP code for getOrCreate() parameters. return: string The PHP code |
| getTestPksForGetOrCreate($fieldNameAsArgument = true) X-Ref |
| Returns PHP code for getOrCreate() promary keys condition. param: boolean true if we pass the field name as an argument, false otherwise return: string The PHP code |
| getRetrieveByPkParamsForGetOrCreate() X-Ref |
| Returns PHP code for primary keys parameters used in getOrCreate() method. return: string The PHP code |
| getTableMap() X-Ref |
| Gets the table map for the current model class. return: TableMap A TableMap instance |
| setScaffoldingClassName($className) X-Ref |
| Sets the class name to use for scaffolding param: string class name |
| getSingularName() X-Ref |
| Gets the singular name for current scaffolding class. return: string |
| getPluralName() X-Ref |
| Gets the plural name for current scaffolding class. return: string |
| getClassName() X-Ref |
| Gets the class name for current scaffolding class. return: string |
| getPeerClassName() X-Ref |
| Gets the Peer class name. return: string |
| getPrimaryKey() X-Ref |
| Gets the primary key name. return: string |
| getMap() X-Ref |
| Gets the Map object. return: object |
| getPrimaryKeyUrlParams($prefix = '') X-Ref |
| Returns PHP code to add to a URL for primary keys. param: string The prefix value return: string PHP code |
| getPrimaryKeyIsSet($prefix = '') X-Ref |
| Gets PHP code for primary key condition. param: string The prefix value return: string PHP code |
| getObjectTagParams($params, $default_params = array() X-Ref |
| Gets object tag parameters. param: array An array of parameters param: array An array of default parameters return: string PHP code |
| getColumnListTag($column, $params = array() X-Ref |
| Returns HTML code for a column in list mode. param: string The column name param: array The parameters return: string HTML code |
| getCrudColumnEditTag($column, $params = array() X-Ref |
| Returns HTML code for a column in edit mode. param: string The column name param: array The parameters return: string HTML code |
| Généré le : Fri Mar 16 22:42:14 2007 | par Balluche grâce à PHPXref 0.7 |