sfWidgetFormSchemaFormatter allows to format a form schema with HTML
formats.
Method Details
-
formatErrorRow ($errors)
Browse code
-
formatErrorsForRow ($errors)
Browse code
-
-
formatRow ($label, $field, $errors = array(), $help = '', $hiddenFields = null)
Browse code
| $label |
|
| $field |
|
| $errors |
|
| $help |
|
| $hiddenFields |
|
-
(string) generateLabel ($name, $attributes = array())
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
Generates the label name for the given field name.
returns The label name
-
-
getErrorListFormatInARow ()
Browse code
-
-
getErrorRowFormatInARow ()
Browse code
-
-
getNamedErrorRowFormatInARow ()
Browse code
-
-
(mixed) getTranslationCallable ()
Browse code
Returns the current i18n callable
-
(string) getTranslationCatalogue ()
Browse code
Get i18n catalogue name
-
-
setDecoratorFormat ($format)
Browse code
-
setErrorListFormatInARow ($format)
Browse code
-
setErrorRowFormat ($format)
Browse code
-
setErrorRowFormatInARow ($format)
Browse code
-
setHelpFormat ($format)
Browse code
-
setNamedErrorRowFormatInARow ($format)
Browse code
-
setRowFormat ($format)
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 = array())
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 ($errors, $prefix = '')
Browse code
-
__construct ($widgetSchema)
Browse code
Constructor
|