symfony API

sfGenerator Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.0 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.0 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.

Inheritence

sfCrudGenerator  <  sfGenerator

Method Summary

Method Details

  • (string) evalTemplate () Browse code

    Evaluates a template file.

    returns The evaluated template

  • (string) generate () Browse code

    Generates classes and templates.

    returns The cache for the configuration file

  • generatePhpFiles (, , ) Browse code

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

    Initializes the current sfGenerator instance.

  • (string) replacePhpMarks () Browse code

    Replaces PHP marks by <?php ?>.

    returns The converted PHP code

  • setGeneratedModuleName () Browse code

    Sets the module name of the generated module.

  • setGeneratorClass () Browse code

    Sets the generator class.

  • setModuleName () Browse code

    Sets the module name.

  • setTheme () Browse code

    Sets the theme name.

  • (mixed) __call (, ) Browse code

    Calls methods defined via the sfMixer class.

    returns The returned value of the called method