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.
-
sfProjectConfiguration
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)
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
-
(sfProjectConfiguration) getConfiguration ()
Browse code
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)
Browse code
| $configuration |
A sfProjectConfiguration instance |
| $basePath |
The base path for file generation |
Class constructor.
|