Method Summary
Methods inherited from sfGenerator
__call , generatePhpFiles , getModuleName , setTheme , initialize , setGeneratorClass , setGeneratedModuleName , getGeneratorManager , replacePhpMarks , generate , getGeneratedModuleName , evalTemplate , getTheme , setModuleName , getGeneratorClass
Method Details
-
getRelatedClassName ($column)
-
(string) getObjectTagParams ($params, $default_params = array())
| $params |
An array of parameters |
| $default_params |
An array of default parameters |
Gets object tag parameters.
returns PHP code
-
(string) getColumnListTag ($column, $params = array())
| $column |
The column name |
| $params |
The parameters |
Returns HTML code for a column in list mode.
returns HTML code
-
(string) getPrimaryKeyUrlParams ($prefix = '')
Returns PHP code to add to a URL for primary keys.
returns PHP code
-
(string) getPluralName ()
Gets the plural name for current scaffolding class.
-
(string) getRetrieveByPkParamsForAction ($indent)
| $indent |
The indentation value |
Returns PHP code for primary keys parameters.
returns The PHP code
-
(string) getCrudColumnEditTag ($column, $params = array())
| $column |
The column name |
| $params |
The parameters |
Returns HTML code for a column in edit mode.
returns HTML code
-
(string) getRetrieveByPkParamsForGetOrCreate ()
Returns PHP code for primary keys parameters used in getOrCreate() method.
returns The PHP code
-
(string) getColumnGetter ($column, $developed = false, $prefix = '')
| $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()'.
This method is ORM dependant.
returns PHP code
-
(string) getPHPObjectHelper ($helperName, $column, $params, $localParams = array())
| $helperName |
The helper name |
| $column |
The column name |
| $params |
An array of parameters |
| $localParams |
An array of local parameters |
Generates a PHP call to an object helper.
This method is ORM dependant.
returns PHP code
-
(TableMap) getTableMap ()
Gets the table map for the current model class.
returns A TableMap instance
-
loadMapBuilderClasses ()
Loads map builder classes.
This method is ORM dependant.
throws sfException
-
(string) getPeerClassName ()
Gets the Peer class name.
-
(string) getMethodParamsForGetOrCreate ()
Returns PHP code for getOrCreate() parameters.
returns The PHP code
-
loadPrimaryKeys ()
Loads primary keys.
This method is ORM dependant.
throws sfException
-
(string) generate ($params = array())
Generates classes and templates in cache.
returns The data to put in configuration cache
-
(string) getClassName ()
Gets the class name for current scaffolding class.
-
(string) getPrimaryKeyIsSet ($prefix = '')
Gets PHP code for primary key condition.
returns PHP code
-
setScaffoldingClassName ($className)
Sets the class name to use for scaffolding
-
(string) getSingularName ()
Gets the singular name for current scaffolding class.
-
(string) getTestPksForGetOrCreate ($fieldNameAsArgument = true)
| $fieldNameAsArgument |
true if we pass the field name as an argument, false otherwise |
Returns PHP code for getOrCreate() promary keys condition.
returns The PHP code
-
(string) getPrimaryKey ()
Gets the primary key name.
-
(object) getMap ()
Gets the Map object.
|