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

Public Member Functions

 MultipleSelectionTag ($attributes)
 addTag (&$tag)
 addContent ($content)
 getDefault ()
 setValue ($desired)
 getValue ()

Data Fields

 $_options
 $_values

Detailed Description

Definition at line 786 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 817 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 806 of file tag.php.

Scans options for defaults to populate the value array().

Returns:
array Selected fields. public

Reimplemented from SimpleWidget.

Definition at line 826 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:
array List of currently set options. public

Reimplemented from SimpleWidget.

Definition at line 868 of file tag.php.

Here is the call graph for this function:

MultipleSelectionTag ( attributes)

Starts with attributes only.

Parameters:
hash$attributesAttribute names and string values.

Definition at line 795 of file tag.php.

Here is the call graph for this function:

setValue ( desired)

Can only set allowed values. Any illegal value will result in a failure, but all correct values will be set.

Parameters:
array$desiredNew choices.
Returns:
boolean True if all allowed. public

Reimplemented from SimpleWidget.

Definition at line 844 of file tag.php.


Field Documentation

$_options

Definition at line 787 of file tag.php.

$_values

Definition at line 788 of file tag.php.


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