Method Summary
-
configure()
Configures this generator.
-
array
getAllFieldNames((Boolean) $withM2M = true)
Gets all the fields for the current model.
-
string
getColumnGetter($column, $developed = false, $prefix = '')
Returns the getter either non-developped: 'getFoo' or developped:
'$class->getFoo()'.
-
array
getColumns()
Get array of sfDoctrineAdminColumn objects
-
array
getDefaultFieldsConfiguration()
Returns the default configuration for fields.
-
array
getFieldsConfiguration($context)
Returns the configuration for fields in a given context.
-
array
getManyToManyTables()
Returns an array of tables that represents a many to many relationship.
-
string
getType($column)
Returns the type of a column.
-
initialize($generatorManager)
Initializes the current sfGenerator instance.
-
loadPrimaryKeys()
Loads primary keys.
addCredentialCondition , asPhp , configure , escapeString , generate , getAllFieldNames , getColumnGetter , getFormMultipartHtml , getFormObject , getI18nCatalogue , getI18NString , getLinkToAction , getManyToManyTables , getModelClass , getPluralName , getPrimaryKeys , getPrimaryKeyUrlParams , getRetrieveByPkParamsForAction , getSingularName , getType , getUrlForAction , loadConfiguration , renderField , validateParameters
Methods inherited from sfGenerator
evalTemplate , generate , generatePhpFiles , getGeneratedModuleName , getGeneratorClass , getGeneratorManager , getModuleName , getTheme , initialize , replacePhpMarks , setGeneratedModuleName , setGeneratorClass , setModuleName , setTheme , __construct
Method Details
-
Configures this generator.
-
(array) getAllFieldNames ((Boolean) $withM2M = true)
Browse code
| $withM2M |
Whether to include m2m fields or not
|
Gets all the fields for the current model.
returns An array of field names
-
(string) getColumnGetter ($column, $developed = false, $prefix = '')
Browse code
| $column |
The column name
|
| $developed |
true if you want developped method names, false otherwise
|
| $prefix |
The prefix value
|
Returns the getter either non-developped: 'getFoo' or developped:
'$class->getFoo()'.
returns PHP code
-
Get array of sfDoctrineAdminColumn objects
-
(array) getDefaultFieldsConfiguration ()
Browse code
Returns the default configuration for fields.
returns An array of default configuration for all fields
-
(array) getFieldsConfiguration ($context)
Browse code
Returns the configuration for fields in a given context.
returns An array of configuration for all the fields in a given context
-
(array) getManyToManyTables ()
Browse code
Returns an array of tables that represents a many to many relationship.
A table is considered to be a m2m table if it has 2 foreign keys that are also primary keys.
returns An array of tables.
-
(string) getType ($column)
Browse code
Returns the type of a column.
returns The column type
-
initialize ($generatorManager)
Browse code
| $generatorManager |
A sfGeneratorManager instance
|
Initializes the current sfGenerator instance.
-
Loads primary keys.
throws sfException
|