sfWidgetFormSchemaFormatter allows to format a form schema with HTML formats.
Method Details
-
-
-
-
-
(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
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
-
-
-
setErrorListFormatInARow ()
Browse code
-
-
setErrorRowFormatInARow ()
Browse code
-
-
setNamedErrorRowFormatInARow ()
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
-
-
__construct ($widgetSchema)
Browse code
Constructor
|