symfony API

sfGeneratorManager Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.2 API OpenSearch

Packages

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

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.
  • 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 = null)
    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

  • 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

    $basePath The base path

    Sets the base path to use when generating files.

  • __construct ($configuration, $basePath = null) Browse code

    $configuration A sfProjectConfiguration instance
    $basePath The base path for file generation

    Class constructor.