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

Class: HTML_QuickForm_Renderer_ObjectFlexy

Source Location: /HTML_QuickForm-3.2.3/QuickForm/Renderer/ObjectFlexy.php

Class Overview

HTML_QuickForm_Renderer
   |
   --HTML_QuickForm_Renderer_Object
      |
      --HTML_QuickForm_Renderer_ObjectFlexy



Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 45]
  • Author: Alexey Borzov <borz_off@cs.msu.su>
  • See: QuickFormFlexyObject Based on the code for HTML_QuickForm_Renderer_ArraySmarty
  • Abstract:

    Long Description A static renderer for HTML_Quickform. Makes a QuickFormFlexyObject from the form content suitable for use with a Flexy template

    Usage: $form =& new HTML_QuickForm('form', 'POST'); $template =& new HTML_Template_Flexy(); $renderer =& new HTML_QuickForm_Renderer_ObjectFlexy(&$template); $renderer->setHtmlTemplate("html.html"); $renderer->setLabelTemplate("label.html"); $form->accept($renderer); $view = new StdClass; $view->form = $renderer->toObject(); $template->compile("mytemplate.html");

  • Public:


[ Top ]


Class Variables

$label =  ''

[line 76]

Name of template file for form labels
  • See: setErrorTemplate()

Type:   string


[ Top ]



Method Detail

HTML_QuickForm_Renderer_ObjectFlexy (Constructor)   [line 91]

HTML_QuickForm_Renderer_ObjectFlexy HTML_QuickForm_Renderer_ObjectFlexy( $flexy &$flexy)

Constructor
  • Public:

Parameters:

$flexy   &$flexy   —  object HTML_Template_Flexy instance

[ Top ]

renderHeader   [line 98]

void renderHeader( &$header)


Overrides HTML_QuickForm_Renderer_Object::renderHeader() (parent method not documented)

Parameters:

   &$header   — 

[ Top ]

setHtmlTemplate   [line 209]

void setHtmlTemplate( template $template)

Set the filename of the template to render html elements.

In your template, {html} is replaced by the unmodified html. If the element is required, {required} will be true. Eg. {if:error} <font color="red" size="1">{error:h}</font>
{end:} {html:h}

  • Public:

Parameters:

template   $template   —  string Filename of template

[ Top ]

setLabelTemplate   [line 229]

void setLabelTemplate( template $template)

Set the filename of the template to render form labels In your template, {label} is replaced by the unmodified label.

{error} will be set to the error, if any. {required} will be true if this is a required field Eg. {if:required} <font color="orange" size="1">*</font> {end:} {label:h}

  • Public:

Parameters:

template   $template   —  string Filename of template

[ Top ]

startGroup   [line 108]

void startGroup( &$group, $required, $error)


Overrides HTML_QuickForm_Renderer_Object::startGroup() (parent method not documented)

Parameters:

   &$group   — 
   $required   — 
   $error   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 13:52:22 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.