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

Class: Cnz_Html_Form_Radio

Source Location: /Html/Form/Radio.php

Class Overview

Cnz_Html_Element
   |
   --Cnz_Html_Form_Item
      |
      --Cnz_Html_Form_Radio

HTML Form Radio 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 61]
HTML Form Radio class

This class automates the creation and display of a radio button group.

Example INI:


 item.contact_method.label   = "Contact Method"
 item.contact_method.type    = radio
 item.contact_method.list    = "
     phone:Call me,
     email:Email me
 "
 item.contact_method.initial = phone
 

If only a single field is specified for a list item, that is used for both the label and the value for that item.

To use images, specify three fields value:altText:filepath. If the filepath is relative, it is taken to be relative to the local image directory.




[ Top ]


Class Methods


constructor __construct [line 87]

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

Option fields: none

Configuration fields: br Flag to enable br tag between radio buttons list Button list




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 99]

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:02:14 -0400 by phpDocumentor 1.4.0RC2