symfony API

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

sfWidgetFormSchemaDecorator wraps a form schema widget inside a given HTML snippet.

Inheritence

sfWidgetFormSchemaDecorator  <  sfWidgetFormSchema < sfWidgetForm < sfWidget

Method Summary

Methods inherited from sfWidgetFormSchema

addFormFormatter , generateName , getDefault , getDefaults , getFields , getFormFormatter , getFormFormatterName , getFormFormatters , getGlobalErrors , getHelp , getHelps , getJavaScripts , getLabel , getLabels , getNameFormat , getParent , getPositions , getStylesheets , moveField , needsMultipartForm , offsetExists , offsetGet , offsetSet , offsetUnset , render , renderField , setDefault , setDefaultFormFormatterName , setDefaults , setFormFormatterName , setHelp , setHelps , setLabel , setLabels , setNameFormat , setParent , setPositions , __clone , __construct

Methods inherited from sfWidgetForm

fixFormId , generateId , generateTwoCharsRange , getDefault , getIdFormat , getLabel , isHidden , needsMultipartForm , renderContentTag , renderTag , setDefault , setHidden , setIdFormat , setLabel , __construct

Methods inherited from sfWidget

addOption , addRequiredOption , attributesToHtml , attributesToHtmlCallback , configure , escapeOnce , fixDoubleEscape , getAttribute , getAttributes , getCharset , getJavaScripts , getOption , getOptions , getRequiredOptions , getStylesheets , hasOption , isXhtml , render , renderContentTag , renderTag , setAttribute , setAttributes , setCharset , setOption , setOptions , setXhtml , __construct

Method Details

  • addFormFormatter ($name, $formatter) Browse code

    $name
    $formatter

  • generateLabel ($name) Browse code

    $name

  • generateLabelName ($name) Browse code

    $name

  • generateName ($name) Browse code

    $name

  • getFields () Browse code

  • getFormFormatter () Browse code

  • getFormFormatterName () Browse code

  • getFormFormatters () Browse code

  • getHelp ($name) Browse code

    $name

  • getHelps () Browse code

  • (array) getJavaScripts () Browse code

    Gets the JavaScript paths associated with the widget.

    returns An array of JavaScript paths

  • getLabel ($name = null) Browse code

    $name

  • getLabels () Browse code

  • getNameFormat () Browse code

  • getParent () Browse code

  • getPositions () Browse code

  • (array) getStylesheets () Browse code

    Gets the stylesheet paths associated with the widget.

    returns An array of stylesheet paths

  • getWidget ((sfWidget) 0) Browse code

    0 The decorated widget

    Returns the decorated widget.

  • moveField ($field, $action, $pivot = null) Browse code

    $field
    $action
    $pivot

  • needsMultipartForm () Browse code

  • offsetExists ($name) Browse code

    $name

  • offsetGet ($name) Browse code

    $name

  • offsetSet ($name, $widget) Browse code

    $name
    $widget

  • offsetUnset ($name) Browse code

    $name

  • render ($name, $values = array(), $attributes = array(), $errors = array()) Browse code

    $name The element name
    $values The value displayed in this widget
    $attributes An array of HTML attributes to be merged with the default HTML attributes
    $errors An array of errors for the field

  • renderField ($name, $value = null, $attributes = array(), $errors = array()) Browse code

    $name
    $value
    $attributes
    $errors

  • setFormFormatterName ($name) Browse code

    $name

  • setHelp ($name, $help) Browse code

    $name
    $help

  • setHelps ($helps) Browse code

    $helps

  • setLabel ($name, $value = null) Browse code

    $name
    $value

  • setLabels ($labels) Browse code

    $labels

  • setNameFormat ($format) Browse code

    $format

  • setParent ($parent = null) Browse code

    $parent

  • setPositions ($positions) Browse code

    $positions

  • __clone () Browse code

  • __construct ($widget, $decorator) Browse code

    $widget A sfWidgetFormSchema instance
    $decorator A decorator string

    Constructor.