sfGeneratorManager helps generate classes, views and templates for
scaffolding, admin interface, ...
Method Summary
-
string
generate($generatorClass, $param)
Generates classes and templates for a given generator class.
-
string
getBasePath()
Gets the base path to use when generating files.
-
getConfiguration()
Returns the current configuration instance.
-
initialize($configuration)
Initializes the sfGeneratorManager instance.
-
save($path, $content)
Saves some content.
-
setBasePath($basePath)
Sets the base path to use when generating files.
-
__construct($configuration, $basePath = null)
Class constructor.
Method Details
-
(string) generate ($generatorClass, $param)
Browse code
| $generatorClass |
The generator class name
|
| $param |
An array of parameters
|
Generates classes and templates for a given generator class.
returns The cache for the configuration file
-
(string) getBasePath ()
Browse code
Gets the base path to use when generating files.
returns The base path
-
Returns the current configuration instance.
returns A sfProjectConfiguration instance
-
initialize ($configuration)
Browse code
| $configuration |
A sfProjectConfiguration instance
|
Initializes the sfGeneratorManager instance.
-
save ($path, $content)
Browse code
| $path |
The relative path
|
| $content |
The content
|
Saves some content.
-
setBasePath ($basePath)
Browse code
Sets the base path to use when generating files.
-
__construct ($configuration, $basePath = null)
Browse code
| $configuration |
A sfProjectConfiguration instance
|
| $basePath |
The base path for file generation
|
Class constructor.
|