Method Summary
Methods inherited from sfGenerator
evalTemplate , generate , generatePhpFiles , getGeneratedModuleName , getGeneratorClass , getGeneratorManager , getModuleName , getTheme , initialize , replacePhpMarks , setGeneratedModuleName , setGeneratorClass , setModuleName , setTheme , __call
Method Details
-
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 (, , )
Browse code
Returns the getter either non-developped: 'getFoo' or developped: '$class->getFoo()'.
This method is ORM dependant.
returns PHP code
-
(string) getColumnListTag (, )
Browse code
Returns HTML code for a column in list mode.
returns HTML code
-
(string) getCrudColumnEditTag (, )
Browse code
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 (, )
Browse code
Gets object tag parameters.
returns PHP code
-
(string) getPeerClassName ()
Browse code
Gets the Peer class name.
-
(string) getPHPObjectHelper (, , , )
Browse code
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 ()
Browse code
Gets PHP code for primary key condition.
returns PHP code
-
(string) getPrimaryKeyUrlParams ()
Browse code
Returns PHP code to add to a URL for primary keys.
returns PHP code
-
getRelatedClassName ()
Browse code
-
(string) getRetrieveByPkParamsForAction ()
Browse code
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 ()
Browse code
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 ()
Browse code
Sets the class name to use for scaffolding
|