Doctrine filter form generator.
Method Summary
arrayExport , filterModels , generate , getColumnNameMaxLength , getColumns , getForeignKeyNames , getFormClassToExtend , getI18nModel , getManyToManyRelations , getParentModel , getPluginModels , getPluginNameForModel , getPrimaryKey , getPrimaryKeyColumNames , getPrimaryKeyColumNamesAsString , getUniqueColumnNames , getValidatorClassForColumn , getValidatorOptionsForColumn , getWidgetClassForColumn , getWidgetOptionsForColumn , initialize , isI18n , isPluginModel , loadModels , underscore
Methods inherited from sfGenerator
evalTemplate , generate , generatePhpFiles , getGeneratedModuleName , getGeneratorClass , getGeneratorManager , getModuleName , getTheme , initialize , replacePhpMarks , setGeneratedModuleName , setGeneratorClass , setModuleName , setTheme , __construct
Method Details
-
(string) arrayExport ($values)
Browse code
Array export. Export array to formatted php code
returns $php
-
(array) filterModels ()
Browse code
Filter out models that have disabled generation of form classes
returns $models Array of models to generate forms for
-
(string) generate ($params)
Browse code
Generates classes and templates in cache.
returns The data to put in configuration cache
-
(string) getFormClassToExtend ()
Browse code
Get the name of the form class to extend based on the inheritance of the model
-
-
(string) getValidatorClassForColumn ($column)
Browse code
Returns a sfValidator class name for a given column.
returns The name of a subclass of sfValidator
-
getValidatorForColumn ()
Browse code
-
(string) getValidatorOptionsForColumn ($column)
Browse code
Returns a PHP string representing options to pass to a validator for a given column.
returns The options to pass to the validator as a PHP string
-
(string) getWidgetClassForColumn ($column)
Browse code
Returns a sfWidgetForm class name for a given column.
returns The name of a subclass of sfWidgetForm
-
(string) getWidgetOptionsForColumn ($column)
Browse code
Returns a PHP string representing options to pass to a widget for a given column.
returns The options to pass to the widget as a PHP string
-
initialize ($generatorManager)
Browse code
| $generatorManager |
A sfGeneratorManager instance |
Initializes the current sfGenerator instance.
|