classname: htmlobject_select
extends: htmlobject_base
Select
@package htmlobjects
@author Alexander Kuballa [akuballa@users.sourceforge.net]
@copyright Copyright (c) 2008 - 2010, Alexander Kuballa
@license BSD License (see LICENSE.TXT)
@version 1.0
filename: htmlobject.select.class.php
Attributes
topattribute: disabled
access: public
default:
topaccess: public
default:
false
Disable select @access public @var bool
attribute: multiple
access: public
default:
topaccess: public
default:
false
Allow multiple selection @access public @var bool
attribute: name
access: public
default:
topaccess: public
default:
empty
Attribute name @access public @var string
attribute: selected
access: public
default:
topaccess: public
default:
array()
Array of option values @access public @var array
attribute: size
access: public
default:
topaccess: public
default:
empty
Number of lines to be shown @access public @var int
attribute: tabindex
access: public
default:
access: public
default:
empty
Attribute tabindex @access public @var int
Methods
topfunction: add
params:
topparams:
$content $index = array('value' 'label')
Add options to select
@access public
@param array | htmlobject_option $content
@param array $index
$content['arg1'] = 'dummyvalue1';
$content['arg2'] = 'dummy label';
$index = array('arg1','arg2');
$select->add($content, $index);
$content[0][0] = 'dummyvalue2';
$content[0][1] = 'dummy label';
$index = array(0,1);
$select->add($content, $index);
function: get_string
topGet html element as string @access public @return string
function: __attribs
topInit attribs @access protected @return string
function: __elements
Get options @access protected @return string
- htmlobject
- htmlobject_a
- htmlobject_base
- htmlobject_box
- htmlobject_button
- htmlobject_div
- htmlobject_form
- htmlobject_formbuilder
- htmlobject_iframe
- htmlobject_img
- htmlobject_input
- htmlobject_option
- htmlobject_request
- htmlobject_response
- htmlobject_select
- htmlobject_table
- htmlobject_tablebuilder
- htmlobject_tabmenu
- htmlobject_td
- htmlobject_template
- htmlobject_textarea
- htmlobject_tr