symfony API

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

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

  • (sfProjectConfiguration) getConfiguration () Browse code

    Returns the current configuration instance.

    returns A sfProjectConfiguration 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) Browse code

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

    Class constructor.