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

Public Member Functions

 getValue ()
 getDefault ()
 setValue ($values)
 _valuesArePossible ($values)
 _coerceValues ($values)
 _makeArray ($value)

Detailed Description

Definition at line 1153 of file tag.php.


Member Function Documentation

_coerceValues ( values)

Converts the output to an appropriate format. This means that no values is false, a single value is just that value and only two or more are contained in an array.

Parameters:
array$valuesList of values of widgets.
Returns:
string/array/boolean Expected format for a tag. private

Definition at line 1240 of file tag.php.

Here is the caller graph for this function:

_makeArray ( value)

Converts false or string into array. The opposite of the coercian method.

Parameters:
string/array/boolean$value A single item is converted to a one item list. False gives an empty list.
Returns:
array List of values, possibly empty. private

Definition at line 1259 of file tag.php.

Here is the caller graph for this function:

_valuesArePossible ( values)

Tests to see if a possible value set is legal.

Parameters:
string/array/boolean$values Either a single string, a hash or false for nothing set.
Returns:
boolean False if trying to set a missing value. private

Definition at line 1220 of file tag.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Accessor for starting value that is active.

Returns:
string/array Widget values or false if none. public

Definition at line 1177 of file tag.php.

Here is the call graph for this function:

getValue ( )

Accessor for current selected widget or false if none.

Returns:
string/array Widget values or false if none. public

Definition at line 1161 of file tag.php.

Here is the call graph for this function:

setValue ( values)

Accessor for current set values.

Parameters:
string/array/boolean$values Either a single string, a hash or false for nothing set.
Returns:
boolean True if all values can be set. public

Definition at line 1195 of file tag.php.

Here is the call graph for this function:


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