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

Class: I18Nv2_DecoratedList_HtmlSelect

Source Location: /I18Nv2-0.11.4/DecoratedList/HtmlSelect.php

Class Overview

I18Nv2_DecoratedList
   |
   --I18Nv2_DecoratedList_HtmlSelect

I18Nv2_DecoratedList_HtmlSelect


Author(s):

Version:

  • $Revision: 1.7 $

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 45]
I18Nv2_DecoratedList_HtmlSelect

Example:


1 require_once 'I18Nv2/Country.php';
2 require_once 'I18Nv2/DecoratedList/HtmlSelect.php';
3
4 $country = &new I18Nv2_Country('de', 'iso-8859-1');
5 $select = &new I18Nv2_DecoratedList_HtmlSelect($country);
6 $select->attributes['select']['name'] = 'country';
7 $select->selected['DE'] = true;
8 echo $select->getAllCodes();



[ Top ]


Class Variables

$attributes = array(
        'select' => array(
            'size' => 1,
        ),'option'=>array())

[line 57]

HTML attributes of the select and the option tags


1 $HtmlSelect->attributes['select']['onchange'] = 'this.form.submit()';

  • Access: public

Type:   array


[ Top ]

$selected = array()

[line 75]

Selected option(s)


1 $HtmlSelect->selected[$code] = true;

  • Access: public

Type:   array


[ Top ]



Method Detail

decorate   [line 84]

string decorate( mixed $value)

decorate
  • Access: protected

Overrides I18Nv2_DecoratedList::decorate() (Decorate)

Parameters:

mixed   $value     

[ Top ]


Documentation generated on Wed, 08 Mar 2006 08:47:41 -0500 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.