symfony API

sfWidgetFormSchemaFormatter Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website

« Back to API menu

1.3 API OpenSearch


You are currently browsing the symfony API for the 1.3 version. Switch to:

sfWidgetFormSchemaFormatter allows to format a form schema with HTML formats.


sfWidgetFormSchemaFormatterList, sfWidgetFormSchemaFormatterTable  <  sfWidgetFormSchemaFormatter

Method Summary

Method Details

  • formatErrorRow () Browse code

  • formatErrorsForRow () Browse code

  • formatHelp () Browse code

  • formatRow () Browse code

  • (string) generateLabel ($name, $attributes) Browse code

    $name The field name
    $attributes Optional html attributes for the label tag

    Generates a label for the given field name.

    returns The label tag

  • (string) generateLabelName ($name) Browse code

    $name The field name

    Generates the label name for the given field name.

    returns The label name

  • getDecoratorFormat () Browse code

  • getErrorListFormatInARow () Browse code

  • getErrorRowFormat () Browse code

  • getErrorRowFormatInARow () Browse code

  • getHelpFormat () Browse code

  • getNamedErrorRowFormatInARow () Browse code

  • getRowFormat () Browse code

  • (mixed) getTranslationCallable () Browse code

    Returns the current i18n callable

  • (string) getTranslationCatalogue () Browse code

    Get i18n catalogue name

  • getWidgetSchema () Browse code

  • setDecoratorFormat () Browse code

  • setErrorListFormatInARow () Browse code

  • setErrorRowFormat () Browse code

  • setErrorRowFormatInARow () Browse code

  • setHelpFormat () Browse code

  • setNamedErrorRowFormatInARow () Browse code

  • setRowFormat () Browse code

  • setTranslationCallable ($callable) Browse code

    Sets a callable which aims to translate form labels, errors and help messages

    throws InvalidArgumentException if an invalid php callable or sfCallable has been provided

  • setTranslationCatalogue ($catalogue) Browse code

    Set an i18n catalogue name

    throws InvalidArgumentException when the catalogue is not a string

  • setWidgetSchema ($widgetSchema) Browse code

    $widgetSchema A sfWidgetFormSchema instance

    Sets the widget schema associated with this formatter instance.

  • (string) translate ($subject, $parameters) Browse code

    $subject The subject to translate
    $parameters Additional parameters to pass back to the callable

    Translates a string using an i18n callable, if it has been provided

  • unnestErrors () Browse code

  • __construct ($widgetSchema) Browse code