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