Manual:HTMLForm.php

HTMLForm is an object handling generic submission, CSRF protection, layout and other logic for UI forms in a reusable manner. In order to generate the form, the HTMLForm object takes an array structure detailing the form fields available. Each element of the array is a basic property-list, including the type of field, the label it is to be given in the form, callbacks for validation and 'filtering', and other pertinent information. Field types are implemented as subclasses of the generic HTMLFormField object, and typically implement at least getInputHTML, which generates the HTML for the input field to be placed in the table.

See also edit

External link edit