symfony API

sfGenerator Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

Packages

You are currently browsing the symfony API for the 1.4 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

sfGenerator is the abstract base class for all generators.

Method Summary

Method Details

  • (string) evalTemplate ($templateFile)

    $templateFile The template file path

    Evaluates a template file.

    returns The evaluated template

  • (string) generate ($params)

    $params An array of parameters

    Generates classes and templates.

    returns The cache for the configuration file

  • generatePhpFiles ($generatedModuleName, $files)

    $generatedModuleName The name of module name to generate
    $files A list of template files to generate

    Generates PHP files for a given module name.

  • (string) getGeneratedModuleName ()

    Gets the module name of the generated module.

    returns The module name

  • (string) getGeneratorClass ()

    Gets the generator class.

    returns The generator class

  • (string) getGeneratorManager ()

    Gets the sfGeneratorManager instance.

    returns The sfGeneratorManager instance

  • (string) getModuleName ()

    Gets the module name.

    returns The module name

  • (string) getTheme ()

    Gets the theme name.

    returns The theme name

  • initialize ($generatorManager)

    $generatorManager A sfGeneratorManager instance

    Initializes the current sfGenerator instance.

  • (string) replacePhpMarks ($text)

    $text The PHP code

    Replaces PHP marks by <?php ?>.

    returns The converted PHP code

  • setGeneratedModuleName ($moduleName)

    $moduleName The module name

    Sets the module name of the generated module.

  • setGeneratorClass ($generatorClass)

    $generatorClass The generator class

    Sets the generator class.

  • setModuleName ($moduleName)

    $moduleName The module name

    Sets the module name.

  • setTheme ($theme)

    $theme The theme name

    Sets the theme name.

  • __construct ()

    Class constructor.