-
(mixed) __call ($method, $arguments)
| $method |
The method name |
| $arguments |
The method arguments |
Calls methods defined via the sfMixer class.
returns The returned value of the called method
-
generatePhpFiles ($generatedModuleName, $templateFiles = array(), $configFiles = array())
| $generatedModuleName |
The name of module name to generate |
| $templateFiles |
A list of template files to generate |
| $configFiles |
A list of configuration files to generate |
Generates PHP files for a given module name.
-
(string) getModuleName ()
Gets the module name.
returns The module name
-
setTheme ($theme)
Sets the theme name.
-
initialize ((sfGeneratorManager) $generatorManager)
| $generatorManager |
A sfGeneratorManager instance |
Initializes the current sfGenerator instance.
-
setGeneratorClass ($generator_class)
| $generator_class |
The generator class |
Sets the generator class.
-
setGeneratedModuleName ($module_name)
| $module_name |
The module name |
Sets the module name of the generated module.
-
(string) getGeneratorManager ()
Gets the sfGeneratorManager instance.
returns The sfGeneratorManager instance
-
(string) replacePhpMarks ($text)
Replaces PHP marks by <?php ?>.
returns The converted PHP code
-
(string) generate ($params = array())
| $params |
An array of parameters |
Generates classes and templates.
returns The cache for the configuration file
-
(string) getGeneratedModuleName ()
Gets the module name of the generated module.
returns The module name
-
(string) evalTemplate ($templateFile)
| $templateFile |
The template file path |
Evaluates a template file.
returns The evaluated template
-
(string) getTheme ()
Gets the theme name.
returns The theme name
-
setModuleName ($module_name)
| $module_name |
The module name |
Sets the module name.
-
(string) getGeneratorClass ()
Gets the generator class.
returns The generator class