symfony API

sfGenerator Class

« Back to API menu

action

addon

cache

config

controller

countable

database

debug

exception

filter

generator

helper

i18n

log

request

response

storage

test

user

util

validator

view

You are currently browsing the symfony documentation for the 1.0 version. Switch to:

sfGenerator is the abstract base class for all generators.

Inheritence

sfCrudGenerator  <  sfGenerator

Method Summary

Method Details

  • (mixed) __call ($method, $arguments)

    $method The method name
    $arguments The method arguments

    Calls methods defined via the sfMixer class.

    returns The returned value of the called method

  • generatePhpFiles ($generatedModuleName, $templateFiles = array(), $configFiles = array())

    $generatedModuleName The name of module name to generate
    $templateFiles A list of template files to generate
    $configFiles A list of configuration files to generate

    Generates PHP files for a given module name.

  • (string) getModuleName ()

    Gets the module name.

    returns The module name

  • setTheme ($theme)

    $theme The theme name

    Sets the theme name.

  • initialize ((sfGeneratorManager) $generatorManager)

    $generatorManager A sfGeneratorManager instance

    Initializes the current sfGenerator instance.

  • setGeneratorClass ($generator_class)

    $generator_class The generator class

    Sets the generator class.

  • setGeneratedModuleName ($module_name)

    $module_name The module name

    Sets the module name of the generated module.

  • (string) getGeneratorManager ()

    Gets the sfGeneratorManager instance.

    returns The sfGeneratorManager instance

  • (string) replacePhpMarks ($text)

    $text The PHP code

    Replaces PHP marks by &lt;?php ?&gt;.

    returns The converted PHP code

  • (string) generate ($params = array())

    $params An array of parameters

    Generates classes and templates.

    returns The cache for the configuration file

  • (string) getGeneratedModuleName ()

    Gets the module name of the generated module.

    returns The module name

  • (string) evalTemplate ($templateFile)

    $templateFile The template file path

    Evaluates a template file.

    returns The evaluated template

  • (string) getTheme ()

    Gets the theme name.

    returns The theme name

  • setModuleName ($module_name)

    $module_name The module name

    Sets the module name.

  • (string) getGeneratorClass ()

    Gets the generator class.

    returns The generator class