sfWidgetFormSchemaDecorator wraps a form schema widget inside a given HTML
snippet.
Method Summary
-
addFormFormatter($name, $formatter)
-
generateLabel($name)
-
generateLabelName($name)
-
generateName($name)
-
getFields()
-
getFormFormatter()
-
getFormFormatterName()
-
getFormFormatters()
-
getHelp($name)
-
getHelps()
-
array
getJavaScripts()
Gets the JavaScript paths associated with the widget.
-
getLabel($name = null)
-
getLabels()
-
getNameFormat()
-
getParent()
-
getPositions()
-
array
getStylesheets()
Gets the stylesheet paths associated with the widget.
-
getWidget((sfWidget) 0)
Returns the decorated widget.
-
moveField($field, $action, $pivot = null)
-
needsMultipartForm()
-
offsetExists($name)
-
offsetGet($name)
-
offsetSet($name, $widget)
-
offsetUnset($name)
-
render($name, $values = array(), $attributes = array(), $errors = array())
-
renderField($name, $value = null, $attributes = array(), $errors = array())
-
setFormFormatterName($name)
-
setHelp($name, $help)
-
setHelps($helps)
-
setLabel($name, $value = null)
-
setLabels($labels)
-
setNameFormat($format)
-
setParent($parent = null)
-
setPositions($positions)
-
__clone()
-
__construct($widget, $decorator)
Constructor.
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
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
-
-
generateLabelName ($name)
Browse code
-
-
-
-
getFormFormatterName ()
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
-
-
-
-
-
(array) getStylesheets ()
Browse code
Gets the stylesheet paths associated with the widget.
returns An array of stylesheet paths
-
getWidget ((sfWidget) 0)
Browse code
Returns the decorated widget.
-
moveField ($field, $action, $pivot = null)
Browse code
-
-
-
-
offsetSet ($name, $widget)
Browse code
-
-
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
-
setHelp ($name, $help)
Browse code
-
-
setLabel ($name, $value = null)
Browse code
-
-
setNameFormat ($format)
Browse code
-
setParent ($parent = null)
Browse code
-
setPositions ($positions)
Browse code
-
-
__construct ($widget, $decorator)
Browse code
| $widget |
A sfWidgetFormSchema instance
|
| $decorator |
A decorator string
|
Constructor.
|