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

Class: htmlSelect

Source Location: /lib/html.inc

Class Overview

htmlElement
   |
   --htmlSelect

Represents a select box.


Methods


Child classes:

htmlTableExtendedSelect
Select with label and help link.

Inherited Constants

Inherited Variables

Inherited Methods

Class: htmlElement

htmlElement::generateHTML()
Prints the HTML code for this element.

Class Details

[line 468]
Represents a select box.



[ Top ]


Class Methods


constructor __construct [line 493]

htmlSelect __construct( String $name, array $elements, array $selectedElements, [int $size = 1])

Constructor.



Overridden in child classes as:

htmlTableExtendedSelect::__construct()
Constructor.

Parameters:

String   $name   element name
array   $elements   list of elememts
array   $selectedElements   list of selected elements
int   $size   size (optional, default = 1)

[ Top ]

method generateHTML [line 511]

array generateHTML( string $module, array $input, array $values, boolean $restricted, &$tabindex, string $scope, integer $tabindex)

Prints the HTML code for this element.



Tags:

return:  List of input field names and their type (name => type)


Overridden in child classes as:

htmlTableExtendedSelect::generateHTML()
Prints the HTML code for this element.

Overrides htmlElement::generateHTML() (Prints the HTML code for this element.)

Parameters:

string   $module   Name of account module
array   $input   List of meta-HTML elements
array   $values   List of values which override the defaults in $input (name => value)
boolean   $restricted   If true then no buttons will be displayed
integer   $tabindex   Start value of tabulator index for input fields
string   $scope   Account type
   &$tabindex  

[ Top ]

method setHasDescriptiveElements [line 568]

void setHasDescriptiveElements( boolean $hasDescriptiveElements)

Specifies if the elements are just a simple list or an assoziative array (default: simple list).



Tags:

access:  public


Parameters:

boolean   $hasDescriptiveElements   activates descriptive elements

[ Top ]

method setMultiSelect [line 577]

void setMultiSelect( boolean $multiSelect)

Specifies if multi-selection is enabled (default: disabled).



Tags:

access:  public


Parameters:

boolean   $multiSelect   allows multi-selection

[ Top ]

method setSortElements [line 586]

void setSortElements( boolean $sortElements)

Specifies if the elemets should be sorted (default: sort).



Tags:

access:  public


Parameters:

boolean   $sortElements   sort elements

[ Top ]


Documentation generated on Fri, 25 Jun 2010 18:49:09 +0200 by phpDocumentor 1.4.1