symfony API

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

Model generator configuration.

Method Summary

Method Details

  • compile () Browse code

  • fixActionParameters ($action, $parameters) Browse code

    $action
    $parameters

  • getConfig () Browse code

  • getContextConfiguration ($context, $fields = null) Browse code

    $context
    $fields

  • getFieldConfiguration ($context, $field) Browse code

    $context
    $field

  • (mixed) getFieldConfigValue ($config, $key, $default = null) Browse code

    $config The configuration
    $key The key name
    $default The default value

    Gets the value for a given key.

    returns The key value

  • getFormFields ($form, $context) Browse code

    $form The form with the fields
    $context The display context

    Gets the fields that represents the form.


    If no form.display parameter is passed in the configuration, all the fields from the form are returned (dynamically).

  • getFormFilterFields ($form) Browse code

    $form The form with the fields

    Gets the fields that represents the filters.


    If no filter.display parameter is passed in the configuration, all the fields from the form are returned (dynamically).

  • (mixed) getValue ($key, $default = null, (Boolean) $escaped = false) Browse code

    $key The configuration key (title.list.name for example)
    $default The default value if none has been defined
    $escaped Whether to escape single quote (false by default)

    Gets the configuration for a given field.

    returns The configuration value

  • mapFieldName ($field) Browse code

    $field

  • parseVariables ($context, $key) Browse code

    $context
    $key

  • __construct () Browse code

    Constructor.