HTML_QuickForm_Renderer_Tableless
[ class tree: HTML_QuickForm_Renderer_Tableless ] [ index: HTML_QuickForm_Renderer_Tableless ] [ all elements ]

Class: HTML_QuickForm_Renderer_Tableless

Source Location: /HTML_QuickForm_Renderer_Tableless-0.6.2/HTML/QuickForm/Renderer/Tableless.php

Class Overview

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.6.2

Methods


Inherited Variables

Inherited Methods


Class Details

[line 67]
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.



[ Top ]


Method Detail

HTML_QuickForm_Renderer_Tableless (Constructor)   [line 149]

HTML_QuickForm_Renderer_Tableless HTML_QuickForm_Renderer_Tableless( )

Constructor
  • Access: public

[ Top ]

addStopFieldsetElements   [line 436]

void addStopFieldsetElements( mixed $element, [string $class = ''])

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)
  • Access: public

Parameters:

mixed   $element     Element name(s) (as array or string)
string   $class     (optional) Class name for the fieldset(s)

[ Top ]

finishForm   [line 358]

void finishForm( object An &$form)

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

Parameters:

object An   &$form     HTML_QuickForm object being visited

[ Top ]

finishGroup   [line 308]

void finishGroup( object An &$group)

Called when visiting a group, after processing all group elements
  • Access: public

Parameters:

object An   &$group     HTML_QuickForm_group object being visited

[ Top ]

renderElement   [line 203]

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

Renders an element Html Called when visiting an element
  • 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   [line 161]

void renderHeader( object An &$header)

Called when visiting a header element
  • Access: public

Parameters:

object An   &$header     HTML_QuickForm_header element being visited

[ Top ]

renderHidden   [line 263]

void renderHidden( object An &$element)

Renders an hidden element Called when visiting a hidden element
  • Access: public

Parameters:

object An   &$element     HTML_QuickForm_hidden object being visited

[ Top ]

setCloseFieldsetTemplate   [line 422]

void setCloseFieldsetTemplate( string $html)

Sets the template used when closing a fieldset
  • Access: public

Parameters:

string   $html     The HTML used when closing a fieldset

[ Top ]

setElementTemplate   [line 492]

void setElementTemplate( string $html, [mixed $element = null])

Sets element template
  • Access: public

Parameters:

string   $html     The HTML surrounding an element
mixed   $element     (optional) Name(s) of the element to apply template for (either single element name as string or multiple element names as an array)

[ Top ]

setOpenFieldsetTemplate   [line 397]

void setOpenFieldsetTemplate( string $html)

Sets the template used when opening a fieldset
  • Access: public

Parameters:

string   $html     The HTML used when opening a fieldset

[ Top ]

setOpenHiddenFieldsetTemplate   [line 410]

void setOpenHiddenFieldsetTemplate( string $html)

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

Parameters:

string   $html     The HTML used when opening a hidden fieldset

[ Top ]

startForm   [line 344]

void startForm( object An &$form)

Called when visiting a form, before processing any form elements
  • Access: public

Parameters:

object An   &$form     HTML_QuickForm object being visited

[ Top ]

startGroup   [line 288]

void startGroup( object An &$group, bool $required, string $error)

Called when visiting a group, before processing any group elements
  • Access: public

Parameters:

object An   &$group     HTML_QuickForm_group object being visited
bool   $required     Whether a group is required
string   $error     An error message associated with a group

[ Top ]


Documentation generated on Sat, 02 Jul 2011 10:00:02 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.