sfDynamicsFormBuilderPlugin - 0.0.1
Symfony Dynamic Form Builder Plugin
You are currently browsing
the website for symfony 1
Symfony Dynamic Form run time Builder.
|James Moey||lead||ua.moc.ketis <<ta>> semaj|
Copyright (c) 2008 James Moey <firstname.lastname@example.org>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Provide the implementation of dynamic generating form based on the model.
Form rendering options are stored in schema.yml and validation information are stored in symfony build in Validation File.
Keyword in schema.yml
f_readonly: true, false The field is readonly. Can not be changed in the form.
f_skip: true, false Skip the field. Foreign Key, CreatedAt and UpdatedAt field are skip by default.
f_display_type: date, time, text, checkbox, textfield, image Display type of the field. textfield is the default option. text is rich textarea. Field name id is hidden text field by default. Field type of boolean is a checkbox by default.
f_label: Custom Label for the field.
f_class: Custom CSS class for the field.
sfMixer Extensibility sfDynamicsFormBuilder:getColumnField:valueModifier - Modify the value before output.
* Parameters: ColumnMap - Object currently processing String - Value of the Column. * Return String to set the value of the column.
sfDynamicsFormBuilder:getColumnField:linkCriteriaModifier - Give the ability to modify the criteria used for Foreign Key.
* Parameters: ColumnMap - Object currently processing Criteria - Criteria use to filter the query. * Return Criteria.