[ Index ]
 

Code source de phpMyVisites 2.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/libs/Html/QuickForm/Renderer/ -> QuickHtml.php (sommaire)

(pas de description)

Poids: 203 lignes (7 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

HTML_QuickForm_Renderer_QuickHtml:: (6 méthodes):
  HTML_QuickForm_Renderer_QuickHtml()
  toHtml()
  elementToHtml()
  renderElement()
  renderHidden()
  finishGroup()


Classe: HTML_QuickForm_Renderer_QuickHtml  - X-Ref

A renderer that makes it quick and easy to create customized forms.

This renderer has three main distinctives: an easy way to create
custom-looking forms, the ability to separate the creation of form
elements from their display, and being able to use QuickForm in
widget-based template systems.  See the online docs for more info.
For a usage example see: docs/renderers/QuickHtml_example.php

HTML_QuickForm_Renderer_QuickHtml()   X-Ref
Constructor

return: void

toHtml($data = '')   X-Ref
returns the HTML generated for the form

param: string $data (optional) Any extra data to put before the end of the form
return: string

elementToHtml($elementName, $elementValue = null)   X-Ref
Gets the html for an element and marks it as rendered.

param: string $elementName The element name
param: string $elementValue (optional) The value of the element.  This is only useful
return: string The html for the QuickForm element

renderElement(&$element, $required, $error)   X-Ref
Gets the html for an element and adds it to the array by calling
parent::renderElement()

param: object     An HTML_QuickForm_element object
param: bool       Whether an element is required
param: string     An error message associated with an element
return: mixed HTML string of element if $immediateRender is set, else we just add the

renderHidden(&$element)   X-Ref
Gets the html for a hidden element and adds it to the array.

param: object     An HTML_QuickForm_hidden object being visited
return: void

finishGroup(&$group)   X-Ref
Gets the html for the group element and adds it to the array by calling
parent::finishGroup()

param: object      An HTML_QuickForm_group object being visited
return: void



Généré le : Mon Nov 26 14:10:01 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics