symfony API

sfGenerator Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.4 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.4 version. Switch to:

sfGenerator is the abstract base class for all generators.

Method Summary

Method Details

  • (string) evalTemplate ($templateFile) Browse code

    $templateFile The template file path

    Evaluates a template file.

    returns The evaluated template

  • (string) generate ($params) Browse code

    $params An array of parameters

    Generates classes and templates.

    returns The cache for the configuration file

  • generatePhpFiles ($generatedModuleName, $files) Browse code

    $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 () Browse code

    Gets the module name of the generated module.

    returns The module name

  • (string) getGeneratorClass () Browse code

    Gets the generator class.

    returns The generator class

  • (string) getGeneratorManager () Browse code

    Gets the sfGeneratorManager instance.

    returns The sfGeneratorManager instance

  • (string) getModuleName () Browse code

    Gets the module name.

    returns The module name

  • (string) getTheme () Browse code

    Gets the theme name.

    returns The theme name

  • initialize ($generatorManager) Browse code

    $generatorManager A sfGeneratorManager instance

    Initializes the current sfGenerator instance.

  • (string) replacePhpMarks ($text) Browse code

    $text The PHP code

    Replaces PHP marks by <?php ?>.

    returns The converted PHP code

  • setGeneratedModuleName ($moduleName) Browse code

    $moduleName The module name

    Sets the module name of the generated module.

  • setGeneratorClass ($generatorClass) Browse code

    $generatorClass The generator class

    Sets the generator class.

  • setModuleName ($moduleName) Browse code

    $moduleName The module name

    Sets the module name.

  • setTheme ($theme) Browse code

    $theme The theme name

    Sets the theme name.

  • __construct () Browse code

    Class constructor.