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

Class: Cnz_Html_Form_Checkbox

Source Location: /Html/Form/Checkbox.php

Class Overview

Cnz_Html_Element
   |
   --Cnz_Html_Form_Item
      |
      --Cnz_Html_Form_Checkbox

HTML Form Checkbox class


Methods


Inherited Constants

Inherited Variables

Inherited Methods

Class: Cnz_Html_Form_Item

Cnz_Html_Form_Item::__construct()
Option fields: initial Initial value for this field
Cnz_Html_Form_Item::getLabel()
Cnz_Html_Form_Item::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 51]
HTML Form Checkbox class

This class automates the creation and display of a checkbox.

Example INI (defaults shown as comments):


 item.is_active.label  = Active
 item.is_active.type   = checkbox
 ;item.is_active.value = true
 




[ Top ]


Class Methods


constructor __construct [line 72]

Cnz_Html_Form_Checkbox __construct( [ $options = array()], [ $config = NULL])

Option fields: none

Configuration fields: value Value when checked




Tags:

access:  public


Overrides Cnz_Html_Form_Item::__construct() (Option fields: initial Initial value for this field)

Parameters:

array   $options   Options
Zend_Config   $config   Configuration

[ Top ]

method display [line 83]

void display( [string $style = NULL])



Tags:

access:  public


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

Parameters:

string   $style   Value for outermost style attribute

[ Top ]


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