Class: HTML_QuickForm_Renderer_Tableless

Source Location: /php/form_render.php

Class Overview [line 50]

HTML_QuickForm_Renderer_Default
   |
   --HTML_QuickForm_Renderer_Tableless

Replacement for the default renderer of HTML_QuickForm that uses only XHTML and CSS but no table tags, and generates fully valid XHTML output

Author(s):

Version:

  • Release: 0.4.1

Copyright:

Variables

Constants

Methods


Inherited Variables

Inherited Constants

Inherited Methods



Class Details

Replacement for the default renderer of HTML_QuickForm that uses only XHTML and CSS but no table tags, and generates fully valid XHTML output

You need to specify a stylesheet like the one that you find in data/stylesheet.css to make this work.

Tags:

[ Top ]


Class Variables


Class Methods

HTML_QuickForm_Renderer_Tableless

HTML_QuickForm_Renderer_Tableless HTML_QuickForm_Renderer_Tableless( )

[line 125]

Constructor

Tags:

  • access - public

Parameters:

[ Top ]

addStopFieldsetElements

void addStopFieldsetElements( mixed $element)

[line 374]

Adds one or more element names that indicate the end of a fieldset (a new one will be opened when a the next header element occurs)

Tags:

  • access - public

Parameters:

  • mixed $element - Element name(s) (as array or string)

[ Top ]

finishForm

void finishForm( object An &$form)

[line 297]

Called when visiting a form, after processing all form elements Adds required note, form attributes, validation javascript and form content.

Tags:

  • access - public

Parameters:

  • object An &$form - HTML_QuickForm object being visited

[ Top ]

finishGroup

void finishGroup( object An &$group)

[line 247]

Called when visiting a group, after processing all group elements

Tags:

  • access - public

Parameters:

  • object An &$group - HTML_QuickForm_group object being visited

[ Top ]

renderElement

void renderElement( object An &$element, bool $required, string $error)

[line 168]

Renders an element Html Called when visiting an element

Tags:

  • access - public

Parameters:

  • object An &$element - HTML_QuickForm_element object being visited
  • bool $required - Whether an element is required
  • string $error - An error message associated with an element

[ Top ]

renderHeader

void renderHeader( object An &$header)

[line 137]

Called when visiting a header element

Tags:

  • access - public

Parameters:

  • object An &$header - HTML_QuickForm_header element being visited

[ Top ]

renderHidden

void renderHidden( object An &$element)

[line 224]

Renders an hidden element Called when visiting a hidden element

Tags:

  • access - public

Parameters:

  • object An &$element - HTML_QuickForm_hidden object being visited

[ Top ]

setCloseFieldsetTemplate

void setCloseFieldsetTemplate( string $html)

[line 361]

Sets the template used when closing a fieldset

Tags:

  • access - public

Parameters:

  • string $html - The HTML used when closing a fieldset

[ Top ]

setOpenFieldsetTemplate

void setOpenFieldsetTemplate( string $html)

[line 336]

Sets the template used when opening a fieldset

Tags:

  • access - public

Parameters:

  • string $html - The HTML used when opening a fieldset

[ Top ]

setOpenHiddenFieldsetTemplate

void setOpenHiddenFieldsetTemplate( string $html)

[line 349]

Sets the template used when opening a hidden fieldset (i.e. a fieldset that is opened when there is no header element)

Tags:

  • access - public

Parameters:

  • string $html - The HTML used when opening a hidden fieldset

[ Top ]

startForm

void startForm( object An &$form)

[line 283]

Called when visiting a form, before processing any form elements

Tags:

  • access - public

Parameters:

  • object An &$form - HTML_QuickForm object being visited

[ Top ]


Class Constants


Documentation generated on Thu, 26 Feb 2009 16:48:20 +0000 by phpDocumentor 1.4.1