Moodle  2.2.1
http://www.collinsharper.com
SimpleSelectionTag Class Reference
Inheritance diagram for SimpleSelectionTag:
Collaboration diagram for SimpleSelectionTag:

Public Member Functions

 SimpleSelectionTag ($attributes)
 addTag (&$tag)
 addContent ($content)
 getDefault ()
 setValue ($value)
 getValue ()

Data Fields

 $_options
 $_choice

Detailed Description

Definition at line 699 of file tag.php.


Member Function Documentation

addContent ( content)

Text within the selection element is ignored.

Parameters:
string$contentIgnored. public

Reimplemented from SimpleTag.

Definition at line 730 of file tag.php.

addTag ( &$  tag)

Adds an option tag to a selection field.

Parameters:
SimpleOptionTag$tagNew option. public

Reimplemented from SimpleTag.

Definition at line 719 of file tag.php.

Scans options for defaults. If none, then the first option is selected.

Returns:
string Selected field. public

Reimplemented from SimpleWidget.

Definition at line 739 of file tag.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getValue ( )

Accessor for current selection value.

Returns:
string Value attribute or content of opton. public

Reimplemented from SimpleWidget.

Definition at line 773 of file tag.php.

Here is the call graph for this function:

setValue ( value)

Can only set allowed values.

Parameters:
string$valueNew choice.
Returns:
boolean True if allowed. public

Reimplemented from SimpleWidget.

Definition at line 757 of file tag.php.

SimpleSelectionTag ( attributes)

Starts with attributes only.

Parameters:
hash$attributesAttribute names and string values.

Definition at line 708 of file tag.php.

Here is the call graph for this function:


Field Documentation

$_choice

Definition at line 701 of file tag.php.

$_options

Definition at line 700 of file tag.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations