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

Class: OptionRenderer

Source Location: /framework/template/components/form/select.inc.php

http://wact.sourceforge.net/index.php/OptionRenderer

Class Overview


Deals with rendering option elements for HTML select tags

Methods


Inherited Variables

Inherited Methods


Class Details

Deals with rendering option elements for HTML select tags

Simple renderer for OPTIONs. Does not support disabled and label attributes. Does not support OPTGROUP tags.


Class Methods


method renderOption

Renders an option, sending directly to display.

Called from SelectSingleComponent or SelectMultipleComponent in their renderContents() method



void renderOption( string $key, string $contents, boolean $selected)

API Tags:

access:  private
todo:  XTHML: selected="selected"

Parameters:

string   $key   value to place within the option value attribute
string   $contents   contents of the option tag
boolean   $selected   whether the option is selected or not
WACT: Copyright 2003 Procata, Inc. Released under the LGPL license (http://www.gnu.org/copyleft/lesser.html)
Documentation generated on Sun, 28 Nov 2004 19:49:43 -0800 by phpDocumentor 1.2.3