symfony API

sfGeneratorManager 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.

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.
  • sfProjectConfiguration getConfiguration()
    Returns the current configuration instance.
  • save($path, $content)
    Saves some content.
  • setBasePath($basePath)
    Sets the base path to use when generating files.
  • __construct($configuration, $basePath)
    Class constructor.

Method Details

  • (string) generate ($generatorClass, $param)

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

    Gets the base path to use when generating files.

    returns The base path

  • (sfProjectConfiguration) getConfiguration ()

    Returns the current configuration instance.

    returns A sfProjectConfiguration instance

  • save ($path, $content)

    $path The relative path
    $content The content

    Saves some content.

  • setBasePath ($basePath)

    $basePath The base path

    Sets the base path to use when generating files.

  • __construct ($configuration, $basePath)

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

    Class constructor.