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

Class: Cnz_Html_Form

Source Location: /Html/Form.php

Class Overview

Cnz_Html_Element
   |
   --Cnz_Html_Form_Abstract
      |
      --Cnz_Html_Form

HTML Form class


Constants

Methods


Inherited Constants

Inherited Variables

Inherited Methods

Class: Cnz_Html_Form_Abstract

Cnz_Html_Form_Abstract::__construct()
Option fields: default Associative array containing default field values row Zend_Db_Table_Row containing data for this form
Cnz_Html_Form_Abstract::display()
Cnz_Html_Form_Abstract::hasFile()
Cnz_Html_Form_Abstract::submitString()
This function returns a string formatted for display or submission by mail.

Class: Cnz_Html_Element

Cnz_Html_Element::__construct()
Option fields:
Cnz_Html_Element::display()
Cnz_Html_Element::genId()
Generates the id attribute value.
Cnz_Html_Element::genStyles()
Generates the class attribute value.
Cnz_Html_Element::getName()

Class Details

[line 57]
HTML Form class

This class automates the creation and display of a form. CSS form style names are standardized as follows:

formLabel[-formname-fieldname]: div block containing a single form label formField[-formname-fieldname]: div block containing a single form field

IDs are standardardized as:

form[-formname<i>-<i>fieldname]

Or for a radio button:

form[-formname<i>-<i>fieldname]-number

See demo at http://cfdemo.cnz.com/.




[ Top ]


Class Methods


constructor __construct [line 103]

Cnz_Html_Form __construct( [ $options = array()])

Option fields: none

Configuration fields: action Form action mailTo Mail to address mailSubject Mail subject mailBcc BCC address method Form method (get or post) onSubmit Form onsubmit value




Tags:

access:  public


Overrides Cnz_Html_Form_Abstract::__construct() (Option fields: default Associative array containing default field values row Zend_Db_Table_Row containing data for this form)

Parameters:

array   $options   Options

[ Top ]

method display [line 121]

void display( [string $style = NULL])



Tags:

access:  public


Overrides Cnz_Html_Form_Abstract::display() (parent method not documented)

Parameters:

string   $style   Value for outermost style attribute

[ Top ]

method getAction [line 76]

string getAction( )



Tags:

return:  Action
access:  public


[ Top ]

method getMethod [line 82]

string getMethod( )



Tags:

return:  Method
access:  public


[ Top ]

method submitDisplay [line 159]

void submitDisplay( [boolean $rawFlag = false])

Display submitted data (for debugging).



Tags:

access:  public


Parameters:

boolean   $rawFlag   Display as raw data, else filter and format.

[ Top ]

method submitMail [line 185]

boolean submitMail( )

Submit the form by mail.

If there is a field named email, this is automatically made the From address.




Tags:

return:  Success
access:  public


[ Top ]


Class Constants

ENCTYPE_FILE =  'multipart/form-data'

[line 60]


[ Top ]

HAS_CONFIG =  true

[line 59]


[ Top ]



Documentation generated on Thu, 19 Jul 2007 15:02:02 -0400 by phpDocumentor 1.4.0RC2