Source for file RendererInterface.php
Documentation is available at RendererInterface.php
* An interface to enforce consistency among all group elements used in a
* In HTML_QuickForm, all form renderers can extend one base class. In PHP-GTK
* 2 this is not possible. To maintain consistency, all renderers must
* implement this interface.
* This interface defines methods needed to collect and display form
* information including errors.
* A note contributors: I welcome contributions from others but I will not
* include any classes in the package that are not accompanied by a complete
* set of PHPUnit2 unit tests. Also, I am a stickler for documentation. Please
* make sure that your contributions are fully documented. Docblocks are not
* enough. There must be inline documentation. Please see Structures/Form.php
* for an example of what I mean by fully documented.
* @package Structures_Form
* @copyright Copyright 2006 Scott Mattocks
* @param object $form The form.
public function setForm(Structures_Form $form);
* Sets the elements that make up the form.
* The array passed in will be of the form: array(<name> => <element>)
* @param array $elements The elements that make up the form.
* Sets the errors to be displayed.
* @param array $errors An array of error strings.
* Returns the rendered form.
* This method should return something inline with the intent of the
* renderer even if there are no elements in the form. For example, if the
* renderer is a GtkTable renderer, this method should return a GtkTable
* no matter what. Of course, it may throw an exception if needed but
* should not return anything other than a GtkTable. Not even null or void.
* @return mixed The rendered form.
* Sets the string to be used as the note indicating what the required
* The required note does not include the required symbol. It is up to the
* renderer to append or prepend the required symbol in a way that makes
* sense for the rendered output.
* The required note is controlled by the form to maintain consistency when
* a single form is rendered in different ways.
* @param string $note The required note.
* Sets the string to be used as the note indicating what the required
* The required note does not include the required symbol. It is up to the
* renderer to append or prepend the required symbol in a way that makes
* sense for the rendered output.
* The required symbol is controlled by the form to maintain consistency
* when a single form is rendered in different ways.
* @param string $symbol The required symbol.
Documentation generated on Mon, 11 Mar 2019 14:44:13 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|