symfony API

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

Doctrine filter form generator.

Inheritence

sfDoctrineFormFilterGenerator  <  sfDoctrineFormGenerator < sfGenerator

Method Summary

  • string arrayExport($values)
    Array export. Export array to formatted php code
  • string generate($params = array())
    Generates classes and templates in cache.
  • getType($column)
  • string getValidatorClassForColumn((sfDoctrineColumn) $column)
    Returns a sfValidator class name for a given column.
  • getValidatorForColumn($column)
  • string getValidatorOptionsForColumn((sfDoctrineColumn) $column)
    Returns a PHP string representing options to pass to a validator for a given column.
  • string getWidgetClassForColumn((sfDoctrineColumn) $column)
    Returns a sfWidgetForm class name for a given column.
  • string getWidgetOptionsForColumn((sfDoctrineColumn) $column)
    Returns a PHP string representing options to pass to a widget for a given column.
  • initialize($generatorManager)
    Initializes the current sfGenerator instance.

Methods inherited from sfDoctrineFormGenerator

arrayExport , generate , getColumnNameMaxLength , getColumns , getForeignKeyNames , getI18nModel , getManyToManyRelations , getPluginModels , getPluginNameForModel , getPrimaryKey , getPrimaryKeyColumNames , getPrimaryKeyColumNamesAsString , getUniqueColumnNames , getValidatorClassForColumn , getValidatorOptionsForColumn , getWidgetClassForColumn , getWidgetOptionsForColumn , initialize , isI18n , isPluginModel , loadModels , underscore

Methods inherited from sfGenerator

evalTemplate , generate , generatePhpFiles , getGeneratedModuleName , getGeneratorClass , getGeneratorManager , getModuleName , getTheme , initialize , replacePhpMarks , setGeneratedModuleName , setGeneratorClass , setModuleName , setTheme , __construct

Method Details

  • (string) arrayExport ($values) Browse code

    $values

    Array export. Export array to formatted php code

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

    $params The parameters

    Generates classes and templates in cache.

    returns The data to put in configuration cache

  • getType ($column) Browse code

    $column

  • (string) getValidatorClassForColumn ((sfDoctrineColumn) $column) Browse code

    $column

    Returns a sfValidator class name for a given column.

    returns The name of a subclass of sfValidator

  • getValidatorForColumn ($column) Browse code

    $column

  • (string) getValidatorOptionsForColumn ((sfDoctrineColumn) $column) Browse code

    $column

    Returns a PHP string representing options to pass to a validator for a given column.

    returns The options to pass to the validator as a PHP string

  • (string) getWidgetClassForColumn ((sfDoctrineColumn) $column) Browse code

    $column

    Returns a sfWidgetForm class name for a given column.

    returns The name of a subclass of sfWidgetForm

  • (string) getWidgetOptionsForColumn ((sfDoctrineColumn) $column) Browse code

    $column

    Returns a PHP string representing options to pass to a widget for a given column.

    returns The options to pass to the widget as a PHP string

  • initialize ($generatorManager) Browse code

    $generatorManager A sfGeneratorManager instance

    Initializes the current sfGenerator instance.